• 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
Re: How can I use NSTextField like a button?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How can I use NSTextField like a button?


  • Subject: Re: How can I use NSTextField like a button?
  • From: Ulf Dunkel <email@hidden>
  • Date: Wed, 12 Nov 2008 11:28:30 +0100
  • Organization: invers Software

I want to use some kind of URL text in a dialog, which the users can click on and which should then open the browser with a specific URL.

Ron Fleckner pointed me to this helpful link: http://developer.apple.com/qa/qa2006/qa1487.html

I have implemented this now, but I am stuck in another tiny issue right now. In my NIB file, I use an NSTextField with right alignment.

When I use the described -setHyperlinkWithTextField:, the alignment is reset to left alignment. How do I keep right alignment in the NSTextField once it has been filled with the NSMutableAttributesString?

Any hints are welcome. :-)
--Ulf

_______________________________________________

Cocoa-dev mailing list (email@hidden)

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:
This email sent to email@hidden


  • Follow-Ups:
    • Re: How can I use NSTextField like a button?
      • From: Jean-Daniel Dupas <email@hidden>
References: 
 >How can I use NSTextField like a button? (From: Ulf Dunkel <email@hidden>)

  • Prev by Date: Re: tableView:objectValueForTableColumn:row not being called
  • Next by Date: Re: How can I use NSTextField like a button?
  • Previous by thread: Re: How can I use NSTextField like a button?
  • Next by thread: Re: How can I use NSTextField like a button?
  • Index(es):
    • Date
    • Thread