• 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: Henri Lamiraux <email@hidden>
  • Date: Tue, 2 Apr 2002 07:34:53 -0800

Please read the FAQ from the IB Help menu

 Why isn't my initWithFrame: method called?

initWithFrame: is only called when you have added a Custom View object
to your window. The initWithFrame: message is sent to the class you
specified in the Attributes Info Panel. Other widgets will not receive
initWithFrame: messages. In this case you should just implement a
-(void)awakeFromNib method to handle any further setup at runtime.


On Monday, April 1, 2002, at 05:05 PM, 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?
>
> Thanks,
> David
> _______________________________________________
> 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.
_______________________________________________
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: tableview data retrieval
  • Next by Date: Fadeing in and out
  • Previous by thread: Re: Why Isn't my initWithFrame method being called?
  • Next by thread: registerForDraggedTypes and NSTableView
  • Index(es):
    • Date
    • Thread