How can I copy/duplicate an existing NSTextField?
How can I copy/duplicate an existing NSTextField?
- Subject: How can I copy/duplicate an existing NSTextField?
- From: Tito Ciuro <email@hidden>
- Date: Fri, 24 Nov 2006 15:54:18 -0800
Hello,
I have an NSTextField connected to an IBOutlet. This text field
contains certain properties, such as font, size, color, and other
attributes. I need to replicate this field programatically several
times, in order to add it to a view. I thought I could do something
like:
NSTextField *myField = [templateField copy];
Unfortunately, this raises an exception. So my question is: how can I
replicate a NSTextField retaining its attributes?
Thanks in advance,
-- Tito
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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