• 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
Script Menu: Code generation
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Script Menu: Code generation


  • Subject: Script Menu: Code generation
  • From: Alexander von Below <email@hidden>
  • Date: Wed, 28 Dec 2005 23:17:48 +0100

Dear List,

the very useful Scripts menu of Xcode contains an item to create accessor definitions.

While it is most certainly correct, I am wondering why it produces:

- (id) x {
	return [[x retain] autorelease];
}

Is this not redundant? Why not just return x?

I guess that the setter code is a matter of preference. The original code copies the new value, I have edited it to retain the value.


Your comments and thoughts on this would be very interesting.

Thanks

Alex
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Script Menu: Code generation
      • From: Nathan Day <email@hidden>
    • Re: Script Menu: Code generation
      • From: j o a r <email@hidden>
  • Prev by Date: .xcdatamodel file & subversion
  • Next by Date: Re: Script Menu: Code generation
  • Previous by thread: .xcdatamodel file & subversion
  • Next by thread: Re: Script Menu: Code generation
  • Index(es):
    • Date
    • Thread