Re: @-directives

2012-03-09 Thread Jean-Daniel Dupas

Le 9 mars 2012 à 03:55, Roland King a écrit :

> Good thinking .. 
> 
> OBJC1_AT_KEYWORD(not_keyword)
> OBJC1_AT_KEYWORD(class)
> OBJC1_AT_KEYWORD(compatibility_alias)
> OBJC1_AT_KEYWORD(defs)
> OBJC1_AT_KEYWORD(encode)
> OBJC1_AT_KEYWORD(end)
> OBJC1_AT_KEYWORD(implementation)
> OBJC1_AT_KEYWORD(interface)
> OBJC1_AT_KEYWORD(private)
> OBJC1_AT_KEYWORD(protected)
> OBJC1_AT_KEYWORD(protocol)
> OBJC1_AT_KEYWORD(public)
> OBJC1_AT_KEYWORD(selector)
> OBJC1_AT_KEYWORD(throw)
> OBJC1_AT_KEYWORD(try)
> OBJC1_AT_KEYWORD(catch)
> OBJC1_AT_KEYWORD(finally)
> OBJC1_AT_KEYWORD(synchronized)
> OBJC1_AT_KEYWORD(autoreleasepool)
> 
> OBJC2_AT_KEYWORD(property)
> OBJC2_AT_KEYWORD(package)
> OBJC2_AT_KEYWORD(required)
> OBJC2_AT_KEYWORD(optional)
> OBJC2_AT_KEYWORD(synthesize)
> OBJC2_AT_KEYWORD(dynamic)
> OBJC2_AT_KEYWORD(__experimental_modules_import)
> 
> So I missed compatibilty_alias, defs, encode, selector (!), try, finally and 
> dynamic. Plus possibly not_keyword and __experimental_modules_import, 
> whatever the heck they are. 

Note that unlike other objc1 keywords, @def is not available in modern obj-c.

AFAIK,  not_keyword is a token used internally by the compiler, and cannot be 
used in code and  @__experimental_modules_import is an unfinished feature, and 
they want more time before deciding what syntax would be used.

-- Jean-Daniel





___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: @-directives

2012-03-08 Thread Matt Neuburg
On Thu, 08 Mar 2012 23:14:02 +, Thomas Davie  said:
>Not that I know of off the top of my head, but here's my attempt at such a 
>list:
>
>@class
>@interface
>@implementation
>@end
>@private
>@public
>@protected
>@protocol
>@required
>@optional
>@property
>@synthesize
>@try
>@catch
>@finally
>@autoreleasepool
>@synchronized

And let's not forget humble @"".

m.

--
matt neuburg, phd = m...@tidbits.com, 
A fool + a tool + an autorelease pool = cool!
Programming iOS 5! http://shop.oreilly.com/product/0636920023562.do
___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: @-directives

2012-03-08 Thread Roland King
Good thinking .. 

OBJC1_AT_KEYWORD(not_keyword)
OBJC1_AT_KEYWORD(class)
OBJC1_AT_KEYWORD(compatibility_alias)
OBJC1_AT_KEYWORD(defs)
OBJC1_AT_KEYWORD(encode)
OBJC1_AT_KEYWORD(end)
OBJC1_AT_KEYWORD(implementation)
OBJC1_AT_KEYWORD(interface)
OBJC1_AT_KEYWORD(private)
OBJC1_AT_KEYWORD(protected)
OBJC1_AT_KEYWORD(protocol)
OBJC1_AT_KEYWORD(public)
OBJC1_AT_KEYWORD(selector)
OBJC1_AT_KEYWORD(throw)
OBJC1_AT_KEYWORD(try)
OBJC1_AT_KEYWORD(catch)
OBJC1_AT_KEYWORD(finally)
OBJC1_AT_KEYWORD(synchronized)
OBJC1_AT_KEYWORD(autoreleasepool)

OBJC2_AT_KEYWORD(property)
OBJC2_AT_KEYWORD(package)
OBJC2_AT_KEYWORD(required)
OBJC2_AT_KEYWORD(optional)
OBJC2_AT_KEYWORD(synthesize)
OBJC2_AT_KEYWORD(dynamic)
OBJC2_AT_KEYWORD(__experimental_modules_import)

So I missed compatibilty_alias, defs, encode, selector (!), try, finally and 
dynamic. Plus possibly not_keyword and __experimental_modules_import, whatever 
the heck they are. 

On Mar 9, 2012, at 10:18 AM, Greg Parker wrote:

> On Mar 8, 2012, at 3:04 PM, Roland King  wrote:
>> Can't find one (why is there not a formal language document in the 
>> documentation somewhere, perhaps because features are added every release) - 
>> maybe we can build one here
>> 
>> @property
>> @synthesize
>> @class
>> @interface
>> @implementation
>> @protocol
>> @end
>> @autoreleasepool
>> @throw
>> @catch
>> @private
>> @public
>> @protected
>> @package
>> @optional
>> @required
>> 
>> that's all the ones I can think of, probably missed 1/2 of them. 
> 
> @compatibility_alias. Don't ask.
> 
> Your best bet is to dig through the compiler's code. They're probably all in 
> one place somewhere.
> 
> 
> -- 
> Greg Parker gpar...@apple.com Runtime Wrangler
> 
> 


___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: @-directives

2012-03-08 Thread Greg Parker
On Mar 8, 2012, at 3:04 PM, Roland King  wrote:
> Can't find one (why is there not a formal language document in the 
> documentation somewhere, perhaps because features are added every release) - 
> maybe we can build one here
> 
> @property
> @synthesize
> @class
> @interface
> @implementation
> @protocol
> @end
> @autoreleasepool
> @throw
> @catch
> @private
> @public
> @protected
> @package
> @optional
> @required
> 
> that's all the ones I can think of, probably missed 1/2 of them. 

@compatibility_alias. Don't ask.

Your best bet is to dig through the compiler's code. They're probably all in 
one place somewhere.


-- 
Greg Parker gpar...@apple.com Runtime Wrangler



___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: @-directives

2012-03-08 Thread Charles Srstka
On Mar 8, 2012, at 5:14 PM, Thomas Davie wrote:

> Not that I know of off the top of my head, but here's my attempt at such a 
> list:
> 
> @class
> @interface
> @implementation
> @end
> @private
> @public
> @protected
> @protocol
> @required
> @optional
> @property
> @synthesize
> @try
> @catch
> @finally
> @autoreleasepool
> @synchronized
> 
> Have I missed your favourite out?

Don’t forget:

@“foo” to create strings

And if you’re using the latest SVN of Clang:

@( foo, bar ) to create arrays
@{ foo : bar } to create dictionaries
@12345(l)|(ul)|(ll), @123.45(f), @(YES)|(NO), @‘a' to create NSNumbers

Charles
___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: @-directives

2012-03-08 Thread Thomas Davie
Not that I know of off the top of my head, but here's my attempt at such a list:

@class
@interface
@implementation
@end
@private
@public
@protected
@protocol
@required
@optional
@property
@synthesize
@try
@catch
@finally
@autoreleasepool
@synchronized

Have I missed your favourite out?

Bob
if (*ra4 != 0xffc78948) { return false; }

On 8 Mar 2012, at 21:12, H. Miersch wrote:

> hi.
> is there a list of @-directives (like @class, @property and @synthesize) 
> somewhere out there? 
> ___
> 
> Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
> 
> 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:
> https://lists.apple.com/mailman/options/cocoa-dev/tom.davie%40gmail.com
> 
> This email sent to tom.da...@gmail.com

___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: @-directives

2012-03-08 Thread Jeffrey Walton
On Thu, Mar 8, 2012 at 4:12 PM, H. Miersch  wrote:
> hi.
> is there a list of @-directives (like @class, @property and @synthesize) 
> somewhere out there?
Apple's official document (they seem to be spread around the document)
* 
https://developer.apple.com/library/mac/documentation/Cocoa/Conceptual/ObjectiveC/ObjC.pdf

Here's a few from others when searching for "Objective C keyword":
* www.roseindia.net/iphone/objectivec/objective.shtml
* http://chachatelier.fr/programmation/fichiers/cpp-objc-en.pdf

Jeff
___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: @-directives

2012-03-08 Thread Roland King
Can't find one (why is there not a formal language document in the 
documentation somewhere, perhaps because features are added every release) - 
maybe we can build one here

@property
@synthesize
@class
@interface
@implementation
@protocol
@end
@autoreleasepool
@throw
@catch
@private
@public
@protected
@package
@optional
@required

that's all the ones I can think of, probably missed 1/2 of them. 



On Mar 9, 2012, at 5:12 AM, H. Miersch wrote:

> hi.
> is there a list of @-directives (like @class, @property and @synthesize) 
> somewhere out there? 
> ___
> 
> Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
> 
> 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:
> https://lists.apple.com/mailman/options/cocoa-dev/rols%40rols.org
> 
> This email sent to r...@rols.org


___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


@-directives

2012-03-08 Thread H. Miersch
hi.
is there a list of @-directives (like @class, @property and @synthesize) 
somewhere out there? 
___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com