|
|
[delete me]
|
|
|
|
Forum Regular
Join Date: Dec 2004
Status:
Offline
|
|
|
|
|
|
|
|
|
|
|
Junior Member
Join Date: Mar 2003
Location: Walnut Creek, CA
Status:
Offline
|
|
Shouldn't that be [me delete]; ?
|
I bring order to chaos. You are in chaos windows, you are the contradiction, a bug wishing to be an OS.
|
|
|
|
|
|
|
|
Professional Poster
Join Date: Oct 2001
Status:
Offline
|
|
Originally Posted by GeeYouEye
Shouldn't that be [me delete]; ?
.
|
|
|
|
|
|
|
|
|
Forum Regular
Join Date: Dec 2004
Status:
Offline
|
|
man, only on the dev forum
|
|
|
|
|
|
|
|
|
Grizzled Veteran
Join Date: Apr 2002
Location: california
Status:
Offline
|
|
|
|
|
|
|
|
|
|
|
Professional Poster
Join Date: Apr 2001
Location: Asheville, NC
Status:
Offline
|
|
Originally Posted by Tesseract
no,
[self delete];
[self release];
or
[self autorelease];
|
ACSA 10.4/10.3, ACTC 10.3, ACHDS 10.3
|
|
|
|
|
|
|
|
Addicted to MacNN
Join Date: Mar 2000
Location: London, UK
Status:
Offline
|
|
Originally Posted by Detrius
[self release];
or
[self autorelease];
Totally not the same thing as deleting.
|
|
|
|
|
|
|
|
|
Professional Poster
Join Date: Apr 2001
Location: Asheville, NC
Status:
Offline
|
|
Originally Posted by Angus_D
Totally not the same thing as deleting.
Yes, but you shouldn't have much reason to delete anything explicitly. That's what the release count is for.
|
ACSA 10.4/10.3, ACTC 10.3, ACHDS 10.3
|
|
|
|
|
|
|
|
Addicted to MacNN
Join Date: Mar 2000
Location: London, UK
Status:
Offline
|
|
Originally Posted by Detrius
Yes, but you shouldn't have much reason to delete anything explicitly. That's what the release count is for.
Retain count. And yes, but only in the sense of the "delete" C++ keyword, which is only one specific meaning of delete.
|
|
|
|
|
|
|
|
|
Clinically Insane
Join Date: Oct 2001
Location: San Diego, CA, USA
Status:
Offline
|
|
Yeah. It could be, say, yet another one of the 50,000 deleteā¦ methods in NSResponder.
|
Chuck
___
"Instead of either 'multi-talented' or 'multitalented' use 'bisexual'."
|
|
|
|
|
|
|
|
Senior User
Join Date: Feb 2001
Location: Deer Crossing, CT
Status:
Offline
|
|
Originally Posted by Tesseract
no,
[self delete];
But, is me a reserved keyword? [me delete] could point to a different object than [self delete] couldn't it?
|
|
|
|
|
|
|
|
|
Junior Member
Join Date: Mar 2003
Location: Walnut Creek, CA
Status:
Offline
|
|
Originally Posted by PBG4 User
But, is me a reserved keyword? [me delete] could point to a different object than [self delete] couldn't it?
Exactly. Consider:
GeeYouEye *me = [GeeYouEye defaultPoster]; //pointer to a singleton!
[me delete]; //could be anything involving deletion, say, of the contents of some ivar in me.
|
I bring order to chaos. You are in chaos windows, you are the contradiction, a bug wishing to be an OS.
|
|
|
|
|
|
|
|
Professional Poster
Join Date: Nov 2000
Location: Tasmania, Australia
Status:
Offline
|
|
Originally Posted by Detrius
Yes, but you shouldn't have much reason to delete anything explicitly. That's what the release count is for.
(I love this thread!)
Delete is a perfectly reasonable method that may not necessarily involve any releasing. Eg, if "me" is an instance of an NSView subclass, "delete" could be a method to remove all subviews.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Forum Rules
|
|
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
|
|
|
|
|
|