Re: Questions for a new mac developer...
Re: Questions for a new mac developer...
- Subject: Re: Questions for a new mac developer...
- From: Charles Steinman <email@hidden>
- Date: Tue, 11 Sep 2007 18:30:44 -0700 (PDT)
--- Kevin White <email@hidden> wrote:
> 1- I have a design where I'd like to have "tabbed"
> views. Similar to
> firefox browser tabs. Is this a standard cocoa
> component for me to use?
> The NSTabbedView seems to be using a sectioned
> control rather than
> traditional tabs. What should I use if I want a
> tabbed look?
There is no standard control that looks like tabs in
10.4. NSTabView did render its widgets as tabs up
until (I think) 10.3. I don't suppose it would be too
hard to write a basic tab implementation, though I
would consider whether the design you have in mind
actually requires a custom control or if you're just
used to the control looking like tabs. There is some
value to UI consistency.
> 2- I have another view where I'd like an iTunes-like
> appearance. If you use
> the television shows area of your itunes library,
> you'll see show icons
> (with details under the icon) down the side, and a
> list of episodes for each
> show. So it's one big scroll view, sectioned off
> for the various
> categories, and items for each category. I'd like
> to achieve a similar look
> but have not the foggiest clue of where to begin to
> get a view like this.
Take a look at the documentation for NSView and go
through the related links and tutorials. Frankly, this
will probably still look intimidating even after
you've gone through all the documentation. I would try
something simple and work up to harder stuff as you
get used to Cocoa and how its drawing and views work.
You can go faster taking baby steps and learning than
jumping in over your head and getting frustrated every
10 seconds.
http://developer.apple.com/documentation/Cocoa/Reference/ApplicationKit/Classes/NSView_Class/index.html
> 4- I currently plan to store app data in xml files.
> Yet the mac "way"
> appears to be more with bindings, controllers, and
> related data sets. How
> can I use bindings, controllers, and other similar
> mac technologies properly
> and yet keep my data in xml formats?
This is a bit like asking how you can use a plastic
cup to hold your drink and still eat spaghetti --
they're not really related. Bindings and MVC are ways
of designing your program, while XML is just a file
format for storing data. Anyway, as of 10.4, Cocoa has
built-in support for reading and writing XML files, so
you can certainly store your data that way if you
want.
By the way, take a look at the Cocoa-Dev FAQ. It has
some good introductory resources:
http://alastairs-place.net/cocoa/faq.txt
Cheers,
Chuck
____________________________________________________________________________________
Be a better Heartthrob. Get better relationship answers from someone who knows. Yahoo! Answers - Check it out.
http://answers.yahoo.com/dir/?link=list&sid=396545433
_______________________________________________
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