• 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: @property problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: @property problem


  • Subject: Re: @property problem
  • From: "Kyle Sluder" <email@hidden>
  • Date: Mon, 11 Feb 2008 17:32:30 -0500

On 2/11/08, Brian Christensen <email@hidden> wrote:
> On Feb 11, 2008, at 16:28, Kyle Sluder wrote:
>
> > Also, you have not specified a memory management method in your
> > @property declaration, which you must do if you are not using garbage
> > collection.
>
> It defaults to "assign." Declaring that for a BOOL would be
> (unnecessarily) redundant.

Not true for non-GC code (which is what I specified).  The compiler
will issue a warning if you do not explicitly declare a memory
management model, because "This encourages you think about what memory
management behavior you want and type it explicitly."  (From
http://developer.apple.com/documentation/Cocoa/Conceptual/ObjectiveC/Articles/chapter_5_section_3.html#//apple_ref/doc/uid/TP30001163-CH17-SW2
).

--Kyle Sluder
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: @property problem
      • From: j o a r <email@hidden>
References: 
 >@property problem (From: Randall Meadows <email@hidden>)
 >Re: @property problem (From: "Kyle Sluder" <email@hidden>)
 >Re: @property problem (From: Brian Christensen <email@hidden>)

  • Prev by Date: Challenging text editing field problem
  • Next by Date: Pop-up NSMenu without NSPopUpButton
  • Previous by thread: Re: @property problem
  • Next by thread: Re: @property problem
  • Index(es):
    • Date
    • Thread