• 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 and crashes, what am I doing wrong?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTableView and crashes, what am I doing wrong?


  • Subject: Re: NSTableView and crashes, what am I doing wrong?
  • From: j o a r <email@hidden>
  • Date: Wed, 9 Apr 2003 02:40:28 +0200

Hej,

When you create objects using the convenience method below, they are "autoreleased" and will be deallocated at the end of the current event loop:

On Tuesday, Apr 8, 2003, at 21:50 Europe/Stockholm, Henrik Eliasson wrote:

glassDict = [NSMutableDictionary dictionary];
glassArray = [NSMutableArray array];

Replace with:

glassDict = [[NSMutableDictionary alloc] init];
glassArray = [[NSMutableArray alloc] init];

...and read memory management articles online to boost your understanding of this topic.

j o a r
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: NSTableView and crashes, what am I doing wrong?
      • From: Alexander Reichstadt <email@hidden>
References: 
 >NSTableView and crashes, what am I doing wrong? (From: Henrik Eliasson <email@hidden>)

  • Prev by Date: RE: write dictionary to file
  • Next by Date: FSPathMakeRef() & unicode problem
  • Previous by thread: Re: NSTableView and crashes, what am I doing wrong?
  • Next by thread: Re: NSTableView and crashes, what am I doing wrong?
  • Index(es):
    • Date
    • Thread