• 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: NSSegmentedControl seems to leak with the copy protocol
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSSegmentedControl seems to leak with the copy protocol


  • Subject: Re: NSSegmentedControl seems to leak with the copy protocol
  • From: Corbin Dunn <email@hidden>
  • Date: Wed, 10 Aug 2005 10:14:18 -0700


Le Aug 9, 2005 à 9:49 AM, David Hoerl a écrit :

    for(i=0; i<1000; ++i) {
        newFoo = [[NSSegmentedControl alloc] initWithFrame:
                    NSMakeRect(0,0,100,16) ];

        newCell = [[foo cell] copy];

        [newFoo setCell:newCell];
        [newCell release];
    }


Well, what is leaking? in the above code you never release newFoo. That is a leak..


-corbin _______________________________________________
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: 
 >NSSegmentedControl seems to leak with the copy protocol (From: David Hoerl <email@hidden>)

  • Prev by Date: -[NSManagedObjectContext hasChanges] returns 1, yet no visible changes? (was Re: refreshObject:mergeChanges: vs. stale transient properties)
  • Next by Date: Re: NSMetadataItem performance issues
  • Previous by thread: NSSegmentedControl seems to leak with the copy protocol
  • Next by thread: turning the focus ring off on 10.2
  • Index(es):
    • Date
    • Thread