xib

Call IBActions through different XIBs

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...

MonoTouch - XIB or not to XIB?

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...

iPad orientation change - How to animate load of new nib/xib

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...

xib file shows in wrong target

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...

Why can't I load a nib in my bundle in my iPhone static library?

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...

My xib nib files don't load for ipad version, why?

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...

highly customized UIs in Cocoa - Interface Builder or not?

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...

One UIViewController or Two for portrait / landscape views

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...

Modifiying Nib file without Interface Builder

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 ...

find xib for iPad

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 ...

Multiple XIBs same File's Owner

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' ...

loadView vs xib - iPhone

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 ? ...

Xcode links to xibs and images mixed up?!

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...

iPhone localization for xib files

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.. ...

Compiling the same Xcode project for iPhone and iPad with different xib files

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 ...

Xcode shows old, deleted xib files

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...

how are decomposed xib / nib files tied and linked together

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. ...

iOS: AutoRotating between NIBs

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 ...

Nib file (and code) organization in a one-window, non-document-based app

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...

How to copy a XIB to another project?

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? ...