Dot syntax allows you to set the properties of objects, and was introduced in Leopard with Objective-C 2.0.
NSTextField is an old class, dating back to NeXTStep, and does not support properties, so the answer to your question is no.
It is easy to find out which classes allow you to use properties: they are well documented in the Xcode docs. It is mostly the newer classes introduced in Leopard that do so. You can also use them in any of your own classes in apps that are targeted at 10.5 or later.
Hi nextEdge,
Dot syntax allows you to set the properties of objects, and was introduced in Leopard with Objective-C 2.0.
NSTextField is an old class, dating back to NeXTStep, and does not support properties, so the answer to your question is no.
It is easy to find out which classes allow you to use properties: they are well documented in the Xcode docs. It is mostly the newer classes introduced in Leopard that do so. You can also use them in any of your own classes in apps that are targeted at 10.5 or later.
Cheers,
Alex
Submitted by alex on Sun, 08/16/2009 - 10:38.