• 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: Cocoa DropShell Wanted (Was Re: Implementing Open Document AE in Cocoa)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Cocoa DropShell Wanted (Was Re: Implementing Open Document AE in Cocoa)


  • Subject: Re: Cocoa DropShell Wanted (Was Re: Implementing Open Document AE in Cocoa)
  • From: Lance Bland <email@hidden>
  • Date: Thu, 24 Jan 2002 14:51:05 -0500

On Thursday, January 24, 2002, at 12:57 PM, Eric Peyton wrote:

Add an application delegate that responds to the message ...

In a default and very simple application, from project builder do this, for example:

go to Resources > MainMenu.nib

double click to launch InterfaceBuilder.

Click once on the File's Owner icon to focus on it.

Type Command-2. See the row named "delegate" in the Outlets column?

You will have to hook that to a delegate object.

Do that by instantiating a custom class in your nib.

Then control-drag from the File's Owner icon to your custom class (delegate class) instance icon (in the same MainMenu.nib window) and assign it as the delegate by double clicking the "delegate" item in the inspector.

You just made a hook to the delegate, so now delegate messages get forwarded to it.

Now, in that delegate class add code for the delegate method.

... many variations after that.

I don't like delegates, I like to subclass NSApplication, but I just don't know better :-)

-lance


_______________________________________________
Lance Bland
System Administrator at VVI
mailto:email@hidden
http://www.vvi.com
Realtime, bulk and web data reporting and visualization


References: 
 >Re: Cocoa DropShell Wanted (Was Re: Implementing Open Document AE in Cocoa) (From: Eric Peyton <email@hidden>)

  • Prev by Date: Re: Implementing Open Document AE in Cocoa
  • Next by Date: Re: Nib owner's outlets
  • Previous by thread: Re: Cocoa DropShell Wanted (Was Re: Implementing Open Document AE in Cocoa)
  • Next by thread: Re: Implementing Open Document AE in Cocoa
  • Index(es):
    • Date
    • Thread