Questions tagged [nib]

NIB files are similar to XIB files (XCode Interface Builder), with the difference being XIB files are modified during development and NIB files are created during the build process. NIBs store static information about the interface as well as any behavior that has been implemented.

Storyboards have since succeeded NIB/XIB files as the latest UI interface tool.

1152 questions
0
votes
3 answers

How do I define a ViewDidLoad method for a UILabel that's contained in a nib file?

I have a nib with a table cell, and within that table cell I have a UILabel. I want to make that label sizeToFit which means I have to do: - (void)viewDidLoad { [self sizeToFit]; } However my label doesn't have any code, just an outlet to a…
David Zorychta
  • 13,039
  • 6
  • 45
  • 81
0
votes
1 answer

Is there any difference in position of the NSViews in the object menu in the interface builder?

Here is what I have in my Objects menu in the interface builder Im curious if the order of ImageView , PaintView and PlayerView matters? In my case I want to stack them in the following order: PlayerView / ImageView / PaintView where paint view is…
Eugene Gordin
  • 4,047
  • 3
  • 47
  • 80
0
votes
1 answer

Passing UILabel's text from one viewcontroller to another

Yes I know people have asked about this for quiet some time. I'm looking for some help on how to pass data from one view controller to another using @properties.. Instead of posting the code here, I've posted a free sample code which you can get…
0
votes
0 answers

Loading a UIViewController with a nib result with a nil view property

So I've got a few UIViewControllers which I've subclassed that I'm trying to instantiate with nib files as views. The problem is that once I instantiate them, the view property on them is throwing an EXC_BAD_ACCESS error and crash the app…
0
votes
1 answer

Loading an attributed string from a UILabel defined on a XIB, that's NOT part of self.view

I was wondering if it is possible to define a UILabel on a Xib file, and on that label define an attributed string with different fonts, styles, sizes, etc... then wire up that label to a property, but NOT have it loaded on the self.view (because I…
Uba Duba
  • 241
  • 2
  • 12
0
votes
1 answer

Terminating app due to uncaught exception 'NSInternalInconsistencyException' Xcode

Ive recently renamed all of my xcode file names and the project name as well, it used to be called HelloThere and I have changed it to BoatTracker and have renamed .h, .m and xib files correspondently. I used the refractor-rename feature in xcode to…
user2010338
0
votes
1 answer

Does using loadNibNamed:owner:topLevelObjects: allows for weak references in top-level outlets?

I've recently realized that loadNibNamed:owner: is deprecated in 10.8 and therefore have started switching it to loadNibNamed:owner:topLevelObjects: I'm using ARC and since this new version now allows my controller to keep strong references to all…
Didier Malenfant
  • 729
  • 1
  • 10
  • 25
0
votes
0 answers

animated autosizing images are not visible

The images here show the animated autosizing images available in the Size Inspector Utility. Why am I not able to see those images in my xib files or my storyboards? That part of the Size Inspector is invisible on my computer. When I am in the Size…
zerowords
  • 2,915
  • 4
  • 29
  • 44
0
votes
1 answer

Loading one view from nib in cocoa

I would like to know, how to make Cocoa OS X application to show only one window, when NIB file contains more than one? I know it is possible (I saw a project where it was done this way) but always when I add secondary window to XIB, it opens…
notsurewhattodo
  • 446
  • 4
  • 11
0
votes
1 answer

AppleScript data is not supported in Xcode 4

I'm migrating a GUI-application from XCode 3 to XCode 4. The source-code is only AppleScript. When I'm opening the a NIB-file the following message pops up: AppleScript data is not supported in Xcode. The AppleScript data in this NIB file has been…
Hedge
  • 16,142
  • 42
  • 141
  • 246
0
votes
2 answers

IB and UIView. What is the correct way to load a view hierarchy from a nib?

Can someone please school me on the proper way to load a view hierarchy from a nib file. I am using the loaded view as a template to stamp out a family of views and the current approach I am using is subtly broken. I don't appear to be copy-ing or…
dugla
  • 12,774
  • 26
  • 88
  • 136
0
votes
2 answers

Way to load portrait and Landscape nib on orientation change?

Is there any way to specify nib name such that application automatically pickups corresponding nib for landscape or portrait when there is change in orientation.Like for iphone 4 and iphone 5 there is Default@2x.png and Default-568h@2x.png something…
user2125861
0
votes
1 answer

Why are all IBOutlets set except _view?

I get the famous loaded the "MyController" nib but the view outlet was not set error. However I made sure, that the IBOutlet view is set. Once the exception is thrown I hit a breakpoint. Below you can see that All IBOutlets are connected All…
Marcel Jackwerth
  • 53,948
  • 9
  • 74
  • 88
0
votes
1 answer

Localized ipad .nib file doesnt work

I have an iPhone application which i am trying to convert to universal. I have a viewController that has 2 localized .xib (English and Spanish) files , that work great. Now in order to target the iPad too , i created a viewController~ipad.xib file…
user1498477
0
votes
2 answers

how do you configure a tableviewcell in a tableview that is added to a UItableviewcontroller in a XIB?

I am using a tableview inside a uiviewcontroller inside a XIB. Because the controller is not a UItablecontroller, I cannot configure the cell directly. If I drag in a tableview cell, i can configure that with the cell identifier etc,but the XIB…
angel of code
  • 686
  • 8
  • 25