Re: NSApp delegate without a nib

2008-07-17 Thread Shawn Erickson
On Thu, Jul 17, 2008 at 9:28 AM, Francisco Tolmasky <[EMAIL PROTECTED]> wrote:
> I've looked around the docs quite a bit and haven't been able to find an
> answer to this.

Why do you think you need to avoid using a simple nib? What you are
asking to do is not supported.

-Shawn
___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


RE: NSApp delegate without a nib

2008-07-17 Thread Joel Norvell
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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


Re: NSApp delegate without a nib

2008-07-17 Thread Jeff Johnson

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?


No.

You can call -[NSApplication setDelegate:] pretty much anytime,  
anywhere in your code, but if you want  
applicationWillFinishLaunching: to be called, for example, you're out  
of luck.


-Jeff

___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]