• 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: Getting an NSWindow and setting its delegate
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Newbie: Getting an NSWindow and setting its delegate


  • Subject: Re: Newbie: Getting an NSWindow and setting its delegate
  • From: Pontus Ilbring <email@hidden>
  • Date: Sat, 30 Jul 2005 16:22:38 +0200

On 7/30/05, Martin Linklater <email@hidden> wrote:
> 1) Try to set the delegate of the default Window which is created
> when I create the project. Problem is, IB doesn't let me Control-drag
> from the window to my AppController class. I tried to set the windows
> delegete in code, but although I can see the 'setDelegate' method for
> NSWindow in the docs I don't know how to actually get a pointer to
> the window to begin with... How do you 'find' a pointer to the
> default NSWindow object that is created with the project ?

You have to drag from the window's icon in the instances tab, not from
the window itself.

If you want to have a pointer to something in a nib file so you can
manipulate it in code then that is what IBOutlets are for.
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Newbie: Getting an NSWindow and setting its delegate (From: Martin Linklater <email@hidden>)

  • Prev by Date: Newbie: Getting an NSWindow and setting its delegate
  • Next by Date: Re: Newbie: Getting an NSWindow and setting its delegate
  • Previous by thread: Newbie: Getting an NSWindow and setting its delegate
  • Next by thread: Re: Newbie: Getting an NSWindow and setting its delegate
  • Index(es):
    • Date
    • Thread