Re: Need help with my first Cocoa app
Re: Need help with my first Cocoa app
- Subject: Re: Need help with my first Cocoa app
- From: SA Dev <email@hidden>
- Date: Wed, 15 Jun 2005 13:54:14 -0400
Pablo:
This doesn't strike me as a very good (Cocoa-like) solution to
your problem. You should really consider a master/detail view
approach (such as a table of all the 'houses' as the master view and
ONE box as the 'detail' view, which shows the details of the
*selected* house in the table).
If you really want to use one box for each house, you'll have to
do this in code (ie, IB won't really work for this problem). If you
want a scrollable list of boxes (having like 10 houses may take too
much screen space), you'd create a scroll view then programmatically
add the boxes to it as subviews. You'd also have to add the buttons
and controls for each box. You can see how this quickly becomes a
little more complex than necessary. Not to mention it's not very
Cocoa-like (I know I said that above, but it's important enough to
repeat).
On Jun 15, 2005, at 1:47 PM, Pablo Gomez wrote:
I recently learned Cocoa and now I'm trying to do my first app. The
problem is that I'm not quite sure how to do some stuff. I'm trying to
do an application that will allow the user to keep track of rents that
are paid to them from different properties they own. They will set up
list of properties through the preferences window, and each one will
be a "House" object which will be stored in an array. However, I want
the main window of my application to display an NSBox for each one of
the properties the user owns with information about each of them. My
question is how can I create an NSBox in my main window for each of
the elements in the array and how can I add some NSButtons inside the
NSBoxes? Is there a way to do it with Interface Builder?
Thanks in advance,
Pablo
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40silentalcove.net
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden