Hi there.
I put a NSMenuItem in the MainMenu.xib of a document-based application. I can set a key equiv. for this item in Interface Builder, anyway that item can't call an IBAction defined in the NSDocument subclass instance (which exists in MyDocument.xib). How can I make that button call an action from a different xib (if it is possib...
I am deciding on where using .xib files are needed while developing with MonoTouch.
My current project needs to work with iPhone and iPad, so I'm wondering if even using Interface Builder is worth it. I already have to remove some designer files so that 2 different views (one for each device) go to the same controller. I also am the o...
In a UIViewController am detecting the view's change in orientation using didRotateFromInterfaceOrientation:(UIInterfaceOrientation)fromInterfaceOrientation. I then load a nib that corresponds to the correct device orientation using [[NSBundle mainBundle] loadNibNamed: owner: options:]. Works ok, but is a little clunky looking. Is the...
Hello all,
I am new to using multiple targets in a xcode project and have hit a snag that I can't find an answer for.
I have a project with two targets. One target does not have a user interface and the second target contains a user interface for administration. The problem that I am having is when I build and run the first target witho...
Let me preface this by saying that I'm a very raw iPhone developer.
I'm making a static library that can be used in iPhone apps. It needs to show a view but static libraries, as I understand it, cannot include nibs (or xibs, in my case). So, I have created a separate bundle containing the xib I need. I then include the bundle along with...
I have converted my project to support iPad (universal). I have changed it so the MainWindow loads MainWindow-iPad (it does), and that in turn calls it's sub-view controller (it does as well).
In my sub-view controllers code, it instantiates other view controllers and loads them. But only the iPhone version is loading.
So my question...
Ive been working with some guys on a highly customized UI for a Cocoa app as well as a few for iPhones.
Am I the only one who is starting to see interface builder as a cludge? Its good for standard components and simple apps.. but the moment you get more deep and complex and customized it becomes painful fast.
Is it better to for in...
I am looking for some clarification with regards to view controllers and views. Should one view controller be used exclusively to control one view?
Basically, my portrait view is going to be a 4x3 grid of buttons (within a scrollview). When i rotate the view to landscape, i am going to want maybe a 6x4 grid.
Obviously the functionali...
I was wondering if there is any way to directly manipulate the XIB/NIB files without the use of Interface Builder. I know its difficult but is there any way. Can you please tell me how can I do that or the internal structure or the documentations available on it? And will it be feasible or better in any other way.
Regards,
Vivek
...
Hi,
I load my xib files through: initWithNibName programatically. If I set something like: [[LoginController alloc] initWithNibName:@"LoginController" bundle:nil];
Shouldn't it load LoginController.xib if it is executed on iPhone and search for LoginController-iPad.xib on the iPad? This is not happening at my code, do I have to select ...
I am trying to create a two view, single controller application as follows: I have two XIB's. Each with the same File's Owner.
As a test, I have placed a UILabel on each XIB. I have connected the File Owner to the UILabel in each XIB. The outlet property is the same.
When I instantiate the nib using loadNibNamed I also set the 'owner' ...
I want to know if there is any advantage in using loadView method instead of xib for a ViewController.
Are there any advantages in terms of memory management or speed ?
...
I have managed to get myself into a bit of a pickle. I have had some problems with my xcode and in an effort to resolve this I have ended up adding and deleting some XIB files and images. Originally these images were in a folder in xcode but I took them out. Anyway the long and short of this is that my app is no longer working and all my...
I am just getting familiar with the localization of xib files and was wondering if there's a way of localizing the strings within the xib by refering to the plists directly...
Appreciate some thoughts..
...
Hi!
I would like to know if it's possible to compile the same Xcode project for both iPhone and iPad, automatically changing the xib file according to the platform. The project will contain both xib files. If this is possible, how can be done?
Thanks
...
I've searched all over and haven't found any help...
I built a small test app with two UIViewControllers and their corresponding xibs. Things were fine, then I made some changes to both xibs but when I build and run, I get the old views. I've tried deleting the build folders, running in the simulator and device, cleaning all targets a...
Hello,
When you decompose a nib file, xcode creates multiple nib files, but I can't see where the "children" nib files are tied or attached to the hierarchy.
...
My universal app is a single full screen view. Pressing a button flips to reveal a settings page:
- (void) showSettings
{
FlipsideViewController * flipsideVC = [FlipsideViewController alloc];
NSString * settingsNib;
if ( isIPad() )
settingsNib = isCurrentlyPortrait() ? @"settings_iPad_portrait" : @"settings_iPad_landscape";
else
...
Good people of StackOverflow,
I am in the early stages of building a non-document-based Cocoa application. What I'm aiming for is a window layout similar to iTunes, with a left, middle, and right pane. The Xcode template for such an application includes a file called MainMenu.xib containing both the main menu, and the main application w...
Simple. I have two projects in Xcode. In one of them I made a .xib file and I want to copy it to another project, so as to save some time redoing it.
I can't drag it to the other project, nor do copy/paste by command, nor copy/paste by the Edit menu.
Any suggestions?
...