Re: Linking a function to NSButton
Re: Linking a function to NSButton
- Subject: Re: Linking a function to NSButton
- From: Danny Swarzman <email@hidden>
- Date: Sun, 13 Jul 2003 04:48:18 -0700
Sometimes it's tough to ask elementary questions because people don't
remember how they actually got started.
I started to make progress when I heard about Cocoa Browser. Search for it
on the web and download it. Once you have it, spend time wandering through
it until you are familiar with how everything is organized.
Figure out how to use InterfaceBuilder to create various objects, including
controller object. You probably did that already. Try to control-drag form
you controller object the various pieces of your interface always look at
the connections pane of the window that comes up from the info item of the
tools menu. Also in InterfaceBuilder, learn how to make add actions and
outlets.
As you see the connections you can make in IntefaceBuilder, you can see
what they mean in Cocoa Browser.
1. Make an action in InterfaceBuilder connect the button to the action in
the controller.
2. Make an outlet for the window and call loadWindow in NSWindowController.
3., 4. The easiest thing to do as store data as property lists. These
are a subset of XML. Look at NSDictionary and NSArray. They have methods to
read and write the structures as plists.
-Danny Swarzman
>
Greetings,
>
>
Thanks for your responses to my queries so far, they have really helped
>
me. Here are three more...
>
>
1. How do I link a function to a NSButton? Is it the same way I link a
>
Text Field.
>
>
2. How do I open newer windows in my application, like when I press
>
"New Record", a dialog box should appear asking me for Stats for the
>
records like "Name", "Address" etc.
>
>
3. I want to store the contents of my entry-fields, and calculated data
>
in a database file, any such file would be OK, be it a simple text
>
file, or a higher-end database application file like Oracle.
>
>
4. On Storing these files, how do I retrieve them? The same way I would
>
have done on REALBasic, using database cursors? Either way please tell
>
me, because have little idea about these methods.
>
>
Thanks a lot,
>
>
Vibhu
>
_______________________________________________
>
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.