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

NSView initWithFrame called twice


  • Subject: NSView initWithFrame called twice
  • From: "Albert Russel" <email@hidden>
  • Date: Sun, 11 Aug 2002 17:38:37 +0200

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.

Hank.
_______________________________________________
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: Writing a delegate from a class
  • Next by Date: Run tab in ProjectBuilder
  • Previous by thread: Writing a delegate from a class
  • Next by thread: Re: NSView initWithFrame called twice
  • Index(es):
    • Date
    • Thread