• 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
Getting reference to a window
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Getting reference to a window


  • Subject: Getting reference to a window
  • From: Cocoader <email@hidden>
  • Date: Fri, 3 Oct 2008 14:57:08 +0100

Hi there,

My NSDocument 'HF_Browser' works with a window in a XIB file. From within this HF_Browser.m file I can get a reference to the window, set it's title, etc.

In MainMenu.xib I have a menu command, 'Jump To' (invoked with Cmd-J). I dragged an Object object into MainMenu.xid and set it to HF_Browser then connected the Jump To menu command to it, to an IBAction in HF_Browser.m.

When I hit Cmd-J my method- (IBAction)MenuJumpTo:(id)sender is called perfectly but within this method I can't get any reference to the window at all. Can you please advise?

--
Paul Harvey
Hiddenfield Software
www.hiddenfield.com

_______________________________________________

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


  • Follow-Ups:
    • Re: Getting reference to a window
      • From: "Shawn Erickson" <email@hidden>
    • Re: Getting reference to a window
      • From: "I. Savant" <email@hidden>
  • Prev by Date: Re: IB plugins
  • Next by Date: Write app without nib file.
  • Previous by thread: Re: [OT] Core Animation is it up to the challenge
  • Next by thread: Re: Getting reference to a window
  • Index(es):
    • Date
    • Thread