• 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: NSView initWithFrame called twice
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSView initWithFrame called twice


  • Subject: Re: NSView initWithFrame called twice
  • From: Brian Webster <email@hidden>
  • Date: Sun, 11 Aug 2002 17:01:43 -0500

Set a breakpoint in the initWithFrame: method and run it using the debugger. This will let you see the stack trace where each call is made. Also, check to see if the method is being called twice on the same object, or if there are actually two different objects each being sent the message once.

On Sunday, August 11, 2002, at 02:20 PM, cocoa-dev-
email@hidden wrote:

I have a NSView derived custom view within an NSScrollView. It has the
following initialization method:

- (id) initWithFrame:(NSRect) frameRect

When my program starts the initWithFrame method gets called twice. I
understand that when the nib file is unarchived one init message is sent to
my custom view but where does the second message come from? Is it sent from
the NSScrollView and if so how do I prevent this from happening.

--
Brian Webster
email@hidden
http://homepage.mac.com/bwebster
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: NSToolbarItem in NSToolbar twice - why?
  • Next by Date: Re: NSToolbarItem actions and modifier keys
  • Previous by thread: NSView initWithFrame called twice
  • Next by thread: Re: NSView initWithFrame called twice
  • Index(es):
    • Date
    • Thread