Re: How to implement an open dialog in a sheet and process its output?
Re: How to implement an open dialog in a sheet and process its output?
- Subject: Re: How to implement an open dialog in a sheet and process its output?
- From: Nathaniel Gottlieb-Graham <email@hidden>
- Date: Mon, 12 Nov 2007 18:45:33 -0500
Sorry, but it's unclear whether you actually made the connection --
in Interface Builder -- between your button and the IBAction. You
"know" that it's being called, but did you Control-drag from the
button to the IBAction in Interface Builder? (I'm resisting the
urge to write out that question in capitals.)
YES I DID CONTROL-DRAG IN IB. ;-)
Like I said, I simply copied your code and pasted it into a small
project and it worked. The only change I had to make was to replace
your [welcomeWindow window] with (in my case) [NSApp mainWindow].
And, of course, I made Interface Builder aware of the changes to the
object where I pasted the code and then Control-dragged from a
button on the window to the action in the instantiated object in
Interface Builder's main window. Perhaps your welcomeWindow
instance is the cause of your problem?
You were right. As soon as I changed [welcomeWindow window] to [NSApp
window] is started working perfectly! The problem was this:
welcomeWindow is an IBOutlet to the window itself, so it was redundant
to call [welcomeWindow window]; I could have used welcomeWindow all on
its own as an argument for modalForWindow:, and when I did this, it
also worked.
Thank you so much for all your help and your extraordinary patience!
Nathaniel
---------------------------------
Nathaniel Gottlieb-Graham
Mac specialist
email@hidden
techpaladin.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