Re: How to open a window
Re: How to open a window
- Subject: Re: How to open a window
- From: publiclook <email@hidden>
- Date: Tue, 5 Aug 2003 16:26:45 -0400
On Tuesday, August 5, 2003, at 10:16 AM, jay wrote:
Thanks for your reply.
You will have to connect the buttons to an action of some sort >by
the sounds of it.
Yes, what would to code look like to open up a window in this function?
Programatically you can call NSButton's -setTarget: and -setAction:
methods, but I suspect you want to do all of this in Interface Builder
like most of us do 99.5% of the time.
This is a window you created in IB?
Yes
Why did you do it that way? Should just use NSRunAlertPanel.
To my understanding the NSRunAlertPanel only displays simple windows.
My window on the other hand has multiple text entry fields (10 or so)
where the user can enter data and then click ok or cancel to either
save or disreguard this data.
I recommend that you work through any of the many ultra-introductory
Cocoa and IB tutorials that are available. Here are some:
http://www.stepwise.com/Articles/VermontRecipes/index.html
http://www.amazon.com/exec/obidos/tg/detail/-/0672322307/
ref=lib_dp_TT01/002-6199081-
9721602?v=glance&s=books&vi=reader&img=22#reader-link
http://developer.apple.com/documentation/Cocoa/Conceptual/
CommunicateWithObjects/Articles/TargetAction.html
http://developer.apple.com/documentation/Cocoa/Conceptual/ObjCTutorial/
chapter03/chapter_3_section_5.html
http://www.oreilly.com/catalog/learncocoa/apple/ch10.html
http://cocoadevcentral.com/articles/000077.php
Thanks for your help,
-j
________________________________________________________________
Sent via the WebMail system at 1st.net
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.