Re: draw NSAttributedstring with transparency

2010-07-23 Thread Bernard Knaepen
Excellent, works perfectly! Thanks a lot, Bernard. ps. for future reference, there is just a tiny typo: currentContent should read currentContext... On 23 Jul 2010, at 15:50, Steve Christensen wrote: > On Jul 23, 2010, at 3:53 AM, Bernard Knaepen wrote: > >> I nee

draw NSAttributedstring with transparency

2010-07-23 Thread Bernard Knaepen
Hello, I need to draw an NSAttributedString over an image. The characters of the string might have different sizes, fonts and colors. I am currently using the drawAtPoint method but I would like to specify a global opacity (transparency) to draw the string. Is there a way to do this or should

Re: Isolate NSTextView from NSColorWell

2010-06-23 Thread Bernard Knaepen
if so, this is expected, and > you’d need to do some subclassing. > > otherwise, just make sure the textview richtext support is off (assuming that > is consistent with your application’s needs) > > > On Jun 23, 2010, at 2:49 AM, Bernard Knaepen wrote: > >> Hi al

Isolate NSTextView from NSColorWell

2010-06-22 Thread Bernard Knaepen
Hi all, I have a window created in IB containing a NSScrollView embedding a NSTextView. In the same window I have a NSColorWell which is supposed to store the color preference for a given object not related to the NSTextView. I would like to be able to change the color of the NSColorWell withou

Re: Core data and NSTextView: get the attributed string?

2010-06-22 Thread Bernard Knaepen
On 21 Jun 2010, at 21:35, Michael Babin wrote: > On Jun 20, 2010, at 8:11 AM, Bernard Knaepen wrote: > >> The trouble I have is to access the attributed string within my code to >> later draw in a custom view. I am trying something like this: >> >> NSManagedO

Core data and NSTextView: get the attributed string?

2010-06-21 Thread Bernard Knaepen
Hello, I have started playing with core data and I am having trouble to get the attributed string from an NSTextView into my program. In the project, the .xcdatamodel contains an Entity called 'signatures' which has a property named 'sigText'. I have set the type of sigText to Binary Data. In