nib

XCode: Rearrange Output/Main Window

Is it possible to move the output/find window that sits above the source editor to the bottom? I was hoping there might be a hidden preference some where, or perhaps someone has edited the nib file to do the re-arrangement. cheers ...

iphone app with multiple views/subviews: memory is not being deallocated

Hello I have an iPhone application that loads succesive views in a framework based on the one explained in this link (basically a main ViewController that loads/removes additional views with a displayView method). In my application I am using NIBs (the example link uses coded views) though so each of my ViewControllers has its accompany...

Possible to initialize an entire UITableViewController (or subclass) from a secondary NIB... not just a UIView?

Nearly all the UINavigationController examples out there show the use of initWithNibName:bundle: to load a NIB containing NOT an entire UIViewController (or subclass) but just a UIView, with the NIB's File's Owner Class property set to UIViewController (or the appropriate subclass) and its view outlet pointed at the UIView. Why is this?...

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 retain-ing when I should be. Here's the relevant code: // pageSet is a list of view tag nu...

TabBarController not working with different nib files

Hi, I've got a tabbarcontroller, and a MainView.nib that houses 3 Views and ViewControllers within the MainView.nib. When I try to associate another nib with its own ViewController to the fourth tabBar, I get errors on tapping the bar, I'm probably doing something wrong cuz usually the same principle works perfect in a non tabBarContr...

UIViewController subclass init not called when loading from nib

I tried overriding the default initWithNibName designated initializer of a UIViewController subclass like so: - (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil { if (self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil]) { // Custom initialization } return self; } I have also included it...

UIButton, created by Interface Builder, is crashing.

I have narrowed down an ugly bug, but since it seems like something internal to the nib/Interface Builder, I'm at a loss of what to do next. I've got a UIView created in IB which functions as a custom dialog box. It shows a message and two buttons. (Proceed or Cancel.) Both buttons have a Background image set in Interface Builder. Some...

Why won't my awakeFromNib fire?

I am starting to move more of my view hierarchy construction to IB. I have a nib file called "AlignmentViewController.xib" in which I set up my view hierarchy with AlignmentViewController as the files owner. This works fine. One of the methods I remain fuzzy on is awakeFromNib. In the follow code snippet of AlignmentViewController I a...

Memory leak in loadNibNamed?

I'm about to wrap up my first iPhone app and figured I'd run it through the Leaks Performance Tool. After fixing one obvious one, the only one I have left is one with a Nib acting as a table header view loaded through loadNibNamed (I was following the Recipes demo here). - (void)viewDidLoad { [super viewDidLoad]; if (self.tab...

Is it possible to directly edit the XML of XIB files?

I tried to do it, but Interface Builder refuses to open the resulting file: "Interface Builder was unable to determine the type of [file name]" ...

iPhone: Nib files not working correctly when copied with *.m & *.h files from 1 project to another

I've been building projects in pieces, prototyping different aspects of the whole in separate demo projects. I'm now in the process of migrating class and nib files from the prototypes into the target project and when I do so the nib files aren't behaving as they did in the prototype. I've been doing the migration by using the "Add Exist...

How to get the resource for NIB file on MAC OSX

Is there a tool to get all string for NIB file on MAC OSX? Right now, I have to copy it from the NIB editor. Thanks. ...

initWithNibName VS NSBundle's loadViewNamed

I've noticed that there are two different ways to load nib files: 1) via the UIView's initWithNibName:bundle: method and 2) NSBundle's loadNibNamed:owner:options: method. Can someone explain the differences between these two and when it is more appropriate to use one over the other and in what circumstances? For instance, if I'm loading...

Load a nib into an UIView?

Hey guys, I need some help. I've got a segmented control. if segment 0 is clicked it shows a UIView, containing a uitableview. If segment 2 is clicked it shows another UIView which contains a uitableview as well. These two tableviews got the same datasource. But i want the second tableview to have an other datasource. SO i thougth of ...

NSViewController and multiple subviews from a Nib

I'm having a difficult time wrapping my head around loading views with Interface Builder and NSViewController. My goal is to have a view which meets the following description: Top bar at the top (like a toolbar but not exactly) which spans the entire width of the view, and a second "content view" below. This composite view is owned by m...

Self Deleting iPhone app

I have a iPhone app which needs to have a self destruct option. This app is going to be use on sensitive locations and holds some algorithms which are not to be known by anybody except the iPod Holder. What would be the most "complete" way of deleting the app? I was thinking of some how writing zeros to the nib file. or the actual appl...

Cocoa Loading a ViewNib

When creating a nib, I have 2 types to create, a WindowNib or a ViewNib. I see the difference is, the window nib has a window, and a view. How do I load a view nib into another window? Do I have to create a WindowController and add a window then load the nib in the window? ...

iPhone: Is there a way to loadFromNib AND have a reuseIdentifier?

I am thinking about this problem now for very long. I try to use different types of cells in my table, that each have their own cell controller and have a reuseIdentifier AND load from NIB. The problem boils down to this: You can either init a Cell via [UITableViewCell initWithStyle:reuseIdentifier:] or via [NSBundle loadNibNamed:owne...

Lost my nib connection: how to get it back?

I am writing my very first genuine program for the IPhone. In the course of developing it, I decided to rename a subsidiary view controller (not RootViewController), so I renamed the .h and .m and .xib files. I had to modify a small amount of code, such as import statements, but the coding effort quickly recovered and all compiled and ...

After loading nib with NSViewController... how do I access the NSButton in the nib?

I've subclassed NSViewController with IBOutlets hooked into an NSButton in a secondary nib. I can instantiate the NSViewController and apply the view in an NSMenu -- it works great -- but how do I access the button to change its title? Since the NSViewController has IBOutlets, I assumed I'd do this through the controller. //this part ...