• 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: NSApp delegate without a nib
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: NSApp delegate without a nib


  • Subject: RE: NSApp delegate without a nib
  • From: Joel Norvell <email@hidden>
  • Date: Thu, 17 Jul 2008 10:22:10 -0700 (PDT)

Francisco,

It is possible to "set the application delegate ... without subclassing NSApplication or mucking around inside of main()."  But I don't know an approach that doesn't require using IB.

When I needed to do this, I used Mark Ericksen's very clear recipe from 2001:

    Re: [NSApp setDelegate]
    http://www.cocoabuilder.com/archive/message/cocoa/2001/6/5/40691

HTH,
Joel


On Jul 17, 2008, at 11:28 AM, Francisco Tolmasky wrote:

> I've looked around the docs quite a bit and haven't been able to
> find an answer to this.  Basically, I'd like to know if it is at
> all possible to set the application delegate without a nib, and
> without subclassing NSApplication or mucking around inside of main
> ().  Is there something similar to NSPrincipalClass in the
> Info.plist like NSApplicationDelegate or something?





_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: Re: NSButton alternate image problem - not redrawing
  • Next by Date: Re: NSApp delegate without a nib
  • Previous by thread: Re: NSApp delegate without a nib
  • Next by thread: IBOutlet to same control in different nibs
  • Index(es):
    • Date
    • Thread