• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSTableView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >RE: NSTableView (From: ".::welemski::." <email@hidden>)

  • Prev by Date: CGS differences from Panther to Tiger
  • Next by Date: Calling AppleScript from a Cocoa app
  • Previous by thread: RE: NSTableView
  • Next by thread: 3rd Party Components
  • Index(es):
    • Date
    • Thread