nib

Split nib in to several nib files with Core Data..

Currently I have one managedContext, many NSArrayControllers of entities which are all pretty interrelated, and several Windows which each make use of 1 or 2 of the NSArrayControllers. The windows use core data bindings, all set up via cocoa bindings done in IB I have 1 nib (xib) right now with everything in there. Often when using my...

how to load a view using a nib file without using view controller

hi,i am new to this objective-c i want to load a view using nib file i created when i press a button .without using any view controller.. ...

when to use a IBOutlet?

I'm a little confused about the IBOutlet.Is it right I should use the IBOutlet when the variable will be changed in the nib? ...

Debugging Tools/Method for Mac OS X Interface Builder (3.2.3)

I am new to Mac OS X programming and so I am going through an introductory text that includes building interfaces using Interface Builder (3.2.3) for both Cocoa and Carbon. Unfortunately I am having problems getting some of the examples I type in to run error free in the Cocoa and Carbon simulators. So I tried downloading the source co...

iphone sdk 3.2 to 4.0 nib editing

So I am working on an app that was compiled on sdk 3.2 and 2.2.1, but I have sdk 4.0. When I compile it, I get many build errors "Pattern colors not supported by the iphone SDK for iphone OS versions prior to 3.0" and "setText is deprecated." Furthermore, when I open a nib file and try to change the colors, add in an item from the libr...

FileMerge .nib file type cannot be merged

I am trying to merge two .nib files. FileMerge has no problem showing the comparison of the two files. I am trying to keep all the settings in one file (i.e. right side) except for two settings that I want to copy from the other file (i.e. left side). The differences are just one line of code each that changes the integer value of a a...

Separate orientation NIBs

I am trying to support multiple orientations within an iPad application, and the views that the designer came up with aren't able to be setup with purely the springs/struts model. I have laid out the views in two seperate nib files and currently use the follow... - (void)willAnimateRotationToInterfaceOrientation:(UIInterfaceOrientation)...

Load a particular NIB based on tableview selection

I have an initial table view that I created as the initial menu within my app. Obviously each option will access something different including NIBs. Part of the constants for the menu options is the NIB. When each option is pulled from a PLIST, I also include which NIB I would like to be called upon. Am I missing something or am I just ...

If I'm building a custom view inside of Interface Builder, do I need to have two different NIB files, one for Portrait and one for Landscape?

I'm building a custom view inside of Interface Builder that has buttons with image backgrounds. The buttons extend to each side of the screen, so I'll need two images for each layout (Portrait and Landscape). As such, do I need to have two different NIB files for each layout (Portrait and Landscape), or is there a way to just use one N...

Is there a way to create a NIB file programmatically?

I know it is easy to create a NIB file easily with interface builder but I was wondering if there is a way to archive an existing UIView into a NIB for use later. It looks like a NIB file is just a special type of bundle where each of the UIView objects are archived using NSCoding but I cannot seem to find any more info beyond that. All...

Loading a UIView subclass from NIB size issues

I have a subclass of UIView that needs to calculates it's height according to it's width. When created in code everything works. However when I try to create the view in Interface builder, and although I override all related methods, I can't get the size of the view set in interface builder. - (id)initWithCoder:(NSCoder *)aDecoder { ...

NIB, setValue:forKey and retain (iOS)

I know about mechanism about outlet connection during loading NIB, but I have no sure. So I'm asking some questions to ensure my knowledge. I assumed these things all true, but It's hard to find mentioning about these on reference documentation. Please point wrong and right things. I have an IBOutlet defined like this: (Of course it's n...

Cocoa performClick: in awakeFromNib not working

Hello, Im trying to call performClick: from awakeFromNib and its not working. I think its because it needs a sender and awakeFromNib has no sender. I have tried using nil,self and sender as the sender of performClick: but none seem to work. My code is - (void)awakeFromNib { [myButton performClick:sender]; } Can anyone think of a wor...

Iphone SDK -- troubles with custom UITableViewCell Nib

I create my own nib, and class for it. I hooked up all the controls to the class in interface builder. When I run it it runs fine. The only problem is that when I scrole the tableview it crashes. Any ideas what the error could be? I've been trying to fix this for a while to no avail. It gives an EXC_BAD_ACCESS which I'm not sure how to d...

loading a nib depending on user cell input

hello i am wondering how its possible to load a nib depending on the string selected from the cell title. here is the code that i am using however i cant get any results.. - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { //FinalViewController *anotherViewController = [[FinalViewController...

NSWindowController subclass initialization from a nib doesn't use -initWithCoder:?

I've added a custom subclass of NSWindowController to my Cocoa project, and added an instance of my subclass to my application's nib. I expected to see my override of the -initWithCoder: method called when the nib was loaded, but it was not. To debug, I added a regular -init method and set a breakpoint on it — and sure enough I hit the b...

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

NSWindowController: loadWindow loads window from nib but showWindow: does nothing

I have an NSWindowController subclass called _PreferencesWindowController with the following implementation - @synthesize window; - (id)init { self = [super initWithWindowNibName:@"PreferencesWindow"]; if (!self) return nil; return self; } And I tried to show the window in _PreferencesWindowController by using the following code...

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

Ipad Application without nib starts and then immediately closes

Im writing an ipad application. So far what I have is a Delegate and Root view controller which initializes the menu screen that starts the game. I am not using a nib, so in my main class, i start the application with UIApplicationMain(argc, argv, nil, @"PictionaryAppDelegate"); In my delegate, I have a applicationDidFinishLaunching...