Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > [delete me]

[delete me]
Thread Tools
rslifka
Forum Regular
Join Date: Dec 2004
Status: Offline
Reply With Quote
Sep 6, 2005, 12:46 PM
 
[delete me]
     
GeeYouEye
Junior Member
Join Date: Mar 2003
Location: Walnut Creek, CA
Status: Offline
Reply With Quote
Sep 9, 2005, 06:02 PM
 
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.
     
itistoday
Professional Poster
Join Date: Oct 2001
Status: Offline
Reply With Quote
Sep 9, 2005, 07:12 PM
 
Originally Posted by GeeYouEye
Shouldn't that be [me delete]; ?
.
     
rslifka  (op)
Forum Regular
Join Date: Dec 2004
Status: Offline
Reply With Quote
Sep 9, 2005, 10:07 PM
 
man, only on the dev forum
     
Tesseract
Grizzled Veteran
Join Date: Apr 2002
Location: california
Status: Offline
Reply With Quote
Sep 9, 2005, 11:13 PM
 
no,
[self delete];
     
Detrius
Professional Poster
Join Date: Apr 2001
Location: Asheville, NC
Status: Offline
Reply With Quote
Sep 10, 2005, 01:20 AM
 
Originally Posted by Tesseract
no,
[self delete];

[self release];

or

[self autorelease];
ACSA 10.4/10.3, ACTC 10.3, ACHDS 10.3
     
Angus_D
Addicted to MacNN
Join Date: Mar 2000
Location: London, UK
Status: Offline
Reply With Quote
Sep 10, 2005, 05:08 AM
 
Originally Posted by Detrius
[self release];

or

[self autorelease];
Totally not the same thing as deleting.
     
Detrius
Professional Poster
Join Date: Apr 2001
Location: Asheville, NC
Status: Offline
Reply With Quote
Sep 11, 2005, 02:47 AM
 
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
     
Angus_D
Addicted to MacNN
Join Date: Mar 2000
Location: London, UK
Status: Offline
Reply With Quote
Sep 11, 2005, 04:18 AM
 
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.
     
Chuckit
Clinically Insane
Join Date: Oct 2001
Location: San Diego, CA, USA
Status: Offline
Reply With Quote
Sep 11, 2005, 12:12 PM
 
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'."
     
PBG4 User
Senior User
Join Date: Feb 2001
Location: Deer Crossing, CT
Status: Offline
Reply With Quote
Sep 12, 2005, 09:19 AM
 
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?
20" iMac G5! :D AND MacBook 1.83GHz!
Canon Digital Rebel Kit + 75 - 300mm lens. Yum Yum! :D
Check out my OS X Musical Scales program
     
GeeYouEye
Junior Member
Join Date: Mar 2003
Location: Walnut Creek, CA
Status: Offline
Reply With Quote
Sep 13, 2005, 02:20 AM
 
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.
     
Brass
Professional Poster
Join Date: Nov 2000
Location: Tasmania, Australia
Status: Offline
Reply With Quote
Sep 13, 2005, 07:10 PM
 
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.
     
   
Thread Tools
 
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Top
Privacy Policy
All times are GMT -4. The time now is 04:24 AM.
All contents of these forums © 1995-2017 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.8 © 2000-2017, Jelsoft Enterprises Ltd.,