Skip navigation.
 
mlRe: Strange behavior with nib loading
FROM : Carter R. Harrison
DATE : Mon Apr 09 20:40:39 2007

That was it!  I must be an idiot to stare at that problem for so long 
and not see what was happening.  Thanks Graham.


On Apr 8, 2007, at 9:28 PM, Graham Perks wrote:

> On Apr 8, 2007, at 7:00 PM, Carter R. Harrison wrote:
>

>>  Inside that NSWindow I have a custom subclass of NSView and it 
>> also is an instance within IB.

>
> and
>

>> my NSView subclass (one of the top-level objects in my nib) is 
>> instantiating twice for some reason

>
> Sounds like you do have two instances. One inside the window and 
> one as a top-level object in the nib.
>
> You needn't make the view a separate instance in IB and put it 
> inside the NSWindow in IB. Do one or the other. Throw it on the 
> NSWindow, alt-5 to change the custom class, and that will do it. 
> You can still ctrl-drag to it to link up your code to it.
>
> Cheers,
> Graham Perks.

Related mailsAuthorDate
mlStrange behavior with nib loading Carter R. Harrison Apr 9, 02:00
mlRe: Strange behavior with nib loading Graham Perks Apr 9, 03:28
mlRe: Strange behavior with nib loading Carter R. Harrison Apr 9, 20:40