Re: NSTableView
Re: NSTableView
- Subject: Re: NSTableView
- From: j o a r <email@hidden>
- Date: Tue, 6 Sep 2005 09:27:38 +0200
On 6 sep 2005, at 09.10, .::welemski::. wrote:
- (IBAction)aSave:(id)sender
{
NSString *fname, *lname;
NSMutableDictionary *thisDictionary=[NSMutableDictionary new];
fname=[outletFname stringValue];
lname=[outletLname stringValue];
[thisDictionary setObject:fname forKey: @ "lname"];
[thisDictionary setObject:lname forKey: @ "fname"];
[myArray addObject:thisDictionary]; //myArray is already
declared
globally and is being constructed in the -(void)awakeFromNib{} method;
}
You need to notify the table view that the data source has changed here.
[myTableView reloadData];
You're also leaking memory. You should release / autorelease your
dictionary, since you transfer ownership of it to the array.
j o a r
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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