Re: x-code tutorial

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.

Reply

The content of this field is kept private and will not be shown publicly.
Enter the code shown in the image:

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
2 + 2 =
Solve this simple math problem and enter the result. E.g. for 1+3, enter 4.

Donate!





If you like what you find here and wish to support further development of this site, please donate via PayPal. No account required.

Syndicate

Syndicate content

User login

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
1 + 8 =
Solve this simple math problem and enter the result. E.g. for 1+3, enter 4.
Enter the code shown in the image: