• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
How can I copy/duplicate an existing NSTextField?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: How can I copy/duplicate an existing NSTextField?
      • From: Chris Hanson <email@hidden>
    • Re: How can I copy/duplicate an existing NSTextField?
      • From: Mark Onyschuk <email@hidden>
  • Prev by Date: Re: Named images in linked frameworks
  • Next by Date: Re: How can I copy/duplicate an existing NSTextField?
  • Previous by thread: Re: Repositioning an NSTextFieldCell?
  • Next by thread: Re: How can I copy/duplicate an existing NSTextField?
  • Index(es):
    • Date
    • Thread