• 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: newbie : init ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: newbie : init ?


  • Subject: Re: newbie : init ?
  • From: mmalcolm crawford <email@hidden>
  • Date: Wed, 12 Jun 2002 11:26:27 -0700

On Wednesday, June 12, 2002, at 02:22 AM, Robert Goldsmith wrote:

The first thing you need to do in an init method is init the
superclass you inherit from

In a subclass you should override the superclass' *designated initialiser*.

(in this case NSTextField)

The designated initialiser of NSView subclasses is
- (id)initWithFrame:(NSRect)frameRect
(see documentation for NSControl, NSTextField's superclass).

mmalc
_______________________________________________
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: 
 >Re: newbie : init ? (From: Robert Goldsmith <email@hidden>)

  • Prev by Date: Re: Clipping drawn text with an ellipsis
  • Next by Date: Re: Clipping drawn text with an ellipsis
  • Previous by thread: Re: newbie : init ?
  • Next by thread: Re: Sending mail with message.framework
  • Index(es):
    • Date
    • Thread