Am looking how to add Class Outlets to the design view (formerly Interface Builder) in Xcode 4, and can't seem to find where they are.
Please help. Thank you.
Your question was answered here:
How to define Outlets and Actions in the Classes Pane in Interface Builder in Xcode 4?
Related
I'm new to MvvmCross and I'm trying to bind my ItemTapped to an MvxCommand. I'm using MvvmCross 6.0.1, Xamarin.Forms and MvxListView component.
Thanks
MvxListView.ItemClicked might do the job.
See for example the star wars API Mvvmcross sample.
Did you try to use Reusable EventToCommandBehavior made by Xamarin team. More info about it you can find on official Xamarin docs here.
Also there is a GitHub repository with source code and sample of using it here.
No matter if you are using MvxCommand it should work because even MvxCommand at some point is inheriting from ICommand
Wish you good luck with coding!
I am starting a cross-platform project in Xamarin, and I have some doubts that are me to prevent development. Initially the project is only for android and UWP but in the near future it will be also for iOS.
Questions:
1. I want to centralize all resources (strings for labels like "Name", "Age") in order to be consumed in the 3 platforms and when you have to edit this string, the change is made on all projects. What better way to do this? I need to do DataBinding on UI in all plataforms
[Xamarin.Android] I researched and heard of anything like "MVVMCross" but this forces me to extend my activities other own the MVVMCross and for example, and uencessito to take Android one ActionBar and for that I need to extend a class that can extender "AppCompatActivity" being, however, can only extend an activity and that therefore can not extend the actitivties from the MVVMCross.
Video: https://youtu.be/_DHDMNB_IeY?list=PLR6WI6W1JdeYSXLbm58jwAKYT7RQR31-W
Like:
public abstract class BaseActivity: AppCompatActivity // (with MVVMCross use MvxAppCompatActivity )
public class MainActivity: BaseActivity // (with MVVMCross use MvxActivity)
For assets, the correct approach is to keep the assets in the project, and if they are common to pass the PCL? I ask this because the assets on Android, iOS and UWP, the dimensions are different. What is good practice?
Thanks in advance!
For string resources and translations located just in your PCL I would suggest to use this library (very simple to implement):
https://github.com/xleon/I18N-Portable/, but you can also try and implement Resx files from your PCL.
Adding MvvmCross to your project just for localization would be just crazy.
But if you already use MvvmCross in your project, there´s a plugin for translations that uses json files at the PCL level: https://github.com/MvvmCross/MvvmCross/wiki/MvvmCross-plugins#jsonlocalisation.
For question 2: You can embbed resources in your PCL and load them from platform projects (ios/android/etc), but it won´t be as obvious as loading platform resources (you´ll need additional code). Thus, your assets and images usually change across platorms (different resolutions, dpi and design style guides) so trying to put them all together may complicate things more than helping.
About using specific MvvmCross Activities: that´s the way it works.
I am new in Eclipse 4(RCP) and I want to create an application in that any custom component can be defined and these components can be dragged and dropped between parts/views. (Like Scene Builder but it must run into e4)
How can it be possible? And which framework can supply my needs?
I look into JavaFX and GEF a little. But I could't make decision to use what.
The DND (Drag and Drop) in SWT provides several useful abstractions.
I think you'll need to get familiar with DragSource, DropTarget and Transfer object.
Please take a look at this article:
https://www.eclipse.org/articles/Article-SWT-DND/DND-in-SWT.html
Someone already posted a question like this in Eclipse Forums:
https://www.eclipse.org/forums/index.php/t/461505/
In XCode 3.2, IB has a Classes tab in the Library to let you add your own class to nib file. But in XCode 4.1 that tab is disappeared. There is an item called "Custom Objects" in object library but I never figure out how to use it.
So in XCode 4.1 if I want to add my own class to nib I have to drag general object then change it in Identity inspector. Way too much complicated and not straightforward at all.
Anyone knows why xcode 4.1 introduced this change ?
Thanks.
The typical way things work is the more simple something is, the less customization you can do. I agree I dislike the new IB, although it does make room for more customization.
Flash Builder Design View extension FAQ
Extending Flex Builder
Design View Extensibility Kit for Flex 4.5
I refers the above links, in that they explain that, we can do custom code generation for flex through a Java Extension class and design.xml. I understood about design.xml. but in the case of Extension class where I will get a example. The above links gave me a little idea about the custom code generation. please help me where i will get more details about the custom code generation in flex and flash builder 4.5. please give me a example or your suggestions
As I see it there are mainly two types of components.
Control (Button, TextInput, TextArea etc)
Container (VGroup, HGroup, Accordian etc)
With control components, you can set the properties and it gets reflected in design view of Flash Builder. Contains on the other hand can have layout logic and can accept drag/drop of other controls/containers. It depends on which kind of component you are trying to develop. In Flash Builder 4.5 you can see DataGrid supports direct connectivity and is more advanced. You can set the dataprovider and map the data to grid columns. For that kind of functionality, you will have to extend the design view extension.