Re: Confusion about NIB loading

2009-06-24 Thread Kyle Sluder
On Wed, Jun 24, 2009 at 6:20 AM, Chris Idou wrote: > Since the doco for loadNibNamed:owner: says that it looks in the bundle > "associated" > with the owner, I'm creating an object of a class that exists in the > subframework to pass as the owner. In the context of your application, are the clas

Re: Confusion about NIB loading

2009-06-24 Thread Rob Keniger
On 25/06/2009, at 10:18 AM, Chris Idou wrote: But loadNibNamed:owner: is a class method, so I can't actually explicitly find the appropriate bundle, and call loadNibNamed: on it to find the right NIB. The doco says that loadNibNamed:owner: will look in the bundle "associated" with the ow

Re: Confusion about NIB loading

2009-06-24 Thread Graham Cox
On 25/06/2009, at 10:18 AM, Chris Idou wrote: But loadNibNamed:owner: is a class method, so I can't actually explicitly find the appropriate bundle, and call loadNibNamed: on it to find the right NIB. The doco says that loadNibNamed:owner: will look in the bundle "associated" with the ow

Re: Confusion about NIB loading

2009-06-24 Thread Kevin Cathey
Alternatively you could use NSNib which allows you to explicitly specify the bundle. In addition, when instantiating the nib using NSNib, you can get the top level objects to send a release message to match the implicit retain. For more info, check out the resource programming guide: http:

Re: Confusion about NIB loading

2009-06-24 Thread Chris Idou
On 24/06/2009, at 11:20 PM, Chris Idou wrote: >> Since the doco for loadNibNamed:owner: says that it looks in the bundle >> "associated" >> with the owner, I'm creating an object of a class that exists in the >> subframework to pass as the owner. >> >> However, it doesn't find the NIB. Am I und

Re: Confusion about NIB loading

2009-06-24 Thread Rob Keniger
On 24/06/2009, at 11:20 PM, Chris Idou wrote: Since the doco for loadNibNamed:owner: says that it looks in the bundle "associated" with the owner, I'm creating an object of a class that exists in the subframework to pass as the owner. However, it doesn't find the NIB. Am I understanding co

Confusion about NIB loading

2009-06-24 Thread Chris Idou
I'm trying to load a NIB from my application that exists in a subframework. Since the doco for loadNibNamed:owner: says that it looks in the bundle "associated" with the owner, I'm creating an object of a class that exists in the subframework to pass as the owner. However, it doesn't find the