On 2008 Feb, 26, at 8:13, Felipe Monteiro de Carvalho wrote:

But there is no initialization method for a NSTextField. How can I
create a NSTextField? Just alloc?

NSTextField is a subclass of NSControl. Use [[NSTextView alloc] - initWithFrame:].

Then use -addSubview: on your window's -contentView. And since your NSTextView is not instantiated in Interface Builder, keep it in an instance variable or something.
_______________________________________________

Cocoa-dev mailing list ([email protected])

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

This email sent to [EMAIL PROTECTED]

Reply via email to