• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Strange behavior with nib loading
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Strange behavior with nib loading


  • Subject: Re: Strange behavior with nib loading
  • From: Graham Perks <email@hidden>
  • Date: Sun, 8 Apr 2007 20:28:09 -0500

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

Cocoa-dev mailing list (email@hidden)

Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Strange behavior with nib loading
      • From: "Carter R. Harrison" <email@hidden>
References: 
 >Strange behavior with nib loading (From: "Carter R. Harrison" <email@hidden>)

  • Prev by Date: Re: pointer address changes for no reason
  • Next by Date: Re: How to make NSWindow redraw vacated rects "ifNeeded"?
  • Previous by thread: Strange behavior with nib loading
  • Next by thread: Re: Strange behavior with nib loading
  • Index(es):
    • Date
    • Thread