Re: Newbie pulling my hair out regarding a simple xcode issue. Please help :-)
Re: Newbie pulling my hair out regarding a simple xcode issue. Please help :-)
- Subject: Re: Newbie pulling my hair out regarding a simple xcode issue. Please help :-)
- From: "Kyle Sluder" <email@hidden>
- Date: Mon, 23 Jun 2008 12:43:57 -0400
On Mon, Jun 23, 2008 at 12:37 PM, Papa-Raboon
<email@hidden> wrote:
> Could anyone please help in some way either with a description of what
> needs to be done or a link to a similar tutorial.
Typically, there isn't a tutorial for this sort of thing because these
situations tend to arise out of a failure to understand the MVC
paradigm.
In other words, you rarely, if ever, connect views to each other in
IB. Instead, your views get connected to a controller which transfers
data in and out of your model. So in your case, you would want to
have a model object (NSMutableArray, as you have mentioned, would be a
good choice) that is managed by a controller. You could whip up a
controller object quite easily, in fact; wire up the action of your
button to an IBAction method in your controller that pulls the values
of the text fields (referenced through outlets, of course),
concatenates them and stuffs the result in the model object. Then
tell your destination text field to update its value. Though wouldn't
it make more sense to use an NSTableView for this?
--Kyle Sluder
_______________________________________________
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