Getting reference to a window
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