• 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: Can you @synthesize simple arrays?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Can you @synthesize simple arrays?


  • Subject: Re: Can you @synthesize simple arrays?
  • From: Ken Thomases <email@hidden>
  • Date: Tue, 18 Nov 2008 17:59:36 -0600

On Nov 17, 2008, at 11:15 AM, Michael Ash wrote:

I'd recommend either using an NSArray even though you don't want to,
or writing accessors with indexes that you'd call like this:

[self setMyString:@"foo" atIndex:3];
[self myIntegerAtIndex:4];

Actually, this is a perfect example of where the KVC indexed accessors for to-many properties are appropriate.


http://developer.apple.com/documentation/Cocoa/Conceptual/KeyValueCoding/Concepts/AccessorConventions.html#/ /apple_ref/doc/uid/20002174-178830-BAJEDEFB


Also, search for the word "weapons" on these pages:

http://developer.apple.com/documentation/Cocoa/Conceptual/CocoaBindings/Concepts/WhatAreBindings.html#/ /apple_ref/doc/uid/20002372-181136

http://homepage.mac.com/mmalc/CocoaExamples/controllers.html


It's a shame, though, that Objective-C 2.0 declared properties don't support this convention.



Cheers, Ken

_______________________________________________

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


References: 
 >Can you @synthesize simple arrays? (From: "Greg Robertson" <email@hidden>)
 >Re: Can you @synthesize simple arrays? (From: "Clark Cox" <email@hidden>)
 >Re: Can you @synthesize simple arrays? (From: "Michael Ash" <email@hidden>)

  • Prev by Date: Re: SOLVED Re: NSAttributedString rendering bugs when rendered with Cocoa Text (rdar://6379047)
  • Next by Date: Re: How to determine if the system is started up from firewire disk
  • Previous by thread: Re: Can you @synthesize simple arrays?
  • Next by thread: NSButtonCell slowdown in NSTableView
  • Index(es):
    • Date
    • Thread