• 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: how to set the NSApp delegate?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: how to set the NSApp delegate?


  • Subject: Re: how to set the NSApp delegate?
  • From: email@hidden
  • Date: Mon, 13 May 2002 13:52:37 -0700

On Mon, May 13, 2002 at 09:53:43AM -0700, email@hidden wrote:

> You'd make a subclass of NSApplication, tell PB that your subclass is the main class (in the target settings), then call "[self setDelegate: xxx]" in your initialization code.
> However, if you're subclassing NSApplication, you probably don't need a delegate, too. The point of the delegate is so you don't have to subclass NSApplication.

thanks. an easier way to do this is [NSApp setDelegate: self] in an awakeFromNib function.

>
> Glen Fisher

--prashanth
_______________________________________________
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: 
 >how to set the NSApp delegate? (From: email@hidden)
 >Re: how to set the NSApp delegate? (From: email@hidden)

  • Prev by Date: Icon Tinting...
  • Next by Date: CICN resource into NSImage, help!!!
  • Previous by thread: Re: how to set the NSApp delegate?
  • Next by thread: [OT] ?
  • Index(es):
    • Date
    • Thread