• 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: Why Isn't my initWithFrame method being called?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Why Isn't my initWithFrame method being called?


  • Subject: Re: Why Isn't my initWithFrame method being called?
  • From: Nathan Day <email@hidden>
  • Date: Tue, 2 Apr 2002 19:40:52 +0930

initWithFrame: is only called when you use use the customView from the pallet not when you set a custom class for some other NSView subclass like NSButton, instead initWithCoder: is called but don't override that instead implement - (void)awakeFromNib defined in the informal protocol NSNibAwaking.

On Tuesday, April 2, 2002, at 10:35 AM, David Kopec wrote:

I have a custom subclass of NSButton that overrides only three methods, initWithFrame, mouseEntered, and mouseExited. None of the three methods is being called! Any ideas?
_______________________________________________
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.

References: 
 >Why Isn't my initWithFrame method being called? (From: David Kopec <email@hidden>)

  • Prev by Date: Re: Malloc()
  • Next by Date: Re: Cocoa:registerForDraggedTypes and NSTableView
  • Previous by thread: Why Isn't my initWithFrame method being called?
  • Next by thread: Re: Why Isn't my initWithFrame method being called?
  • Index(es):
    • Date
    • Thread