Transparent IKImageBrowserView

2010-07-23 Thread Rimas M.
Hello, As far as I know, it is still impossible to have transparent background of IKImageBrowserView? I am writing to be 100% sure for that. Maybe I have missed something? All my attempts to create transparent IKImageBrowserView failed. I have tried: * (1) setting background color for IKImageBr

Re: Array controllers in code?

2010-07-23 Thread Michael Swan
Amy, A few things with what you are trying to do. First off, using IBOutlet for array controllers is totally correct, basically any element you add in IB you should access through an IBOutlet. As for the calculation of the a value based on other values in Core Data you have a few problems. The f

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: Array controllers in code?

2010-07-23 Thread Chris Hanson
On Jul 22, 2010, at 1:15 PM, Quincey Morris wrote: > Incidentally, if you're dealing with currency, it's better to use integers > (the number of cents, rather than the number of dollars, essentially) rather > than floating point. Actually, the OP has said that her data model has these attribut

Re: draw NSAttributedstring with transparency

2010-07-23 Thread Andreas Mayer
Am 23.07.2010 um 12:53 Uhr schrieb Bernard Knaepen: 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 I scan the whole string and make the changes to each character color individua

Re: Array controllers in code?

2010-07-23 Thread Amy Gibbs
this did it! Thank You, I think that was the problem, the values were NSDecimalNumber not NSNumber! anyway, it works so fingers crossed I can get this little app finished soon Yay :) just for reference, my final code: /** Calculate Product Cost */ - (IBAction)calcCost:(id)sender; { N

Re: Transparent IKImageBrowserView

2010-07-23 Thread Steve Christensen
This worked for me: NSColor* browserBackgroundColor = [NSColor colorWithCalibratedWhite:0.10 alpha:0.60]; [_effectsBrowser setValue:browserBackgroundColor forKey:IKImageBrowserBackgroundColorKey]; Are you sure that it's not working for you? Perhaps a superview has a non-transparent backgroun

Re: draw NSAttributedstring with transparency

2010-07-23 Thread Steve Christensen
On Jul 23, 2010, at 3:53 AM, Bernard Knaepen wrote: > 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) t

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 need to draw an NSAttributedSt

Re: draw NSAttributedstring with transparency

2010-07-23 Thread Kyle Sluder
On Jul 23, 2010, at 4:41 AM, Andreas Mayer wrote: > > Am 23.07.2010 um 12:53 Uhr schrieb Bernard Knaepen: > >> 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 I scan the whole

Re: NSPropertyListSerialization and string encoding

2010-07-23 Thread Joe Turner
Hey, No one is requiring me to send a string–I do indeed send it as data, but I must convert values from string to data. Like, I have a title field, in which I must convert the title to NSData. But since there are a bunch of arguments like this, I just make a string like @"arg1=something&arg2=s

Re: NSPropertyListSerialization and string encoding

2010-07-23 Thread Kyle Sluder
On Fri, Jul 23, 2010 at 9:34 AM, Joe Turner wrote: > Hey, > > No one is requiring me to send a string–I do indeed send it as data, but I > must convert values from string to data. Like, I have a title field, in which > I must convert the title to NSData. But since there are a bunch of arguments

Re: loading French strings being in English language

2010-07-23 Thread Matt Neuburg
On Thu, 22 Jul 2010 11:19:32 +0200, Giacomo Tufano said: >Il giorno 22/lug/2010, alle ore 11.15, cocoa learner ha scritto: > >> I have localized my app in English and French languages. >> But I want to load French strings being in English language based on radio >> button input (English and French

Re: loading French strings being in English language

2010-07-23 Thread Douglas Davidson
On Jul 23, 2010, at 10:24 AM, Matt Neuburg wrote: > On Thu, 22 Jul 2010 11:19:32 +0200, Giacomo Tufano said: >> Il giorno 22/lug/2010, alle ore 11.15, cocoa learner ha scritto: >> >>> I have localized my app in English and French languages. >>> But I want to load French strings being in English

NSBox with a NSPopUpButton

2010-07-23 Thread Eric Gorr
In the HIG, it says: Group boxes can be untitled or titled. If titled, they may have text-only titles, checkbox titles, or pop-up menu titles. If the group box uses a checkbox title, the items in the group box should be active only when the checkbox is selected. Group boxes are available in In

Re: NSBox with a NSPopUpButton

2010-07-23 Thread Kyle Sluder
On Jul 23, 2010, at 11:20 AM, Eric Gorr wrote: > > So, what is the best method to create a NSBox with a NSPopUpButton? > > I can think of two methods which may work (neither of which I like) : > > 1. Create a NSBox and NSPopUpButton and then manually position the > NSPopUpButton on the NSBox.

Re: NSPropertyListSerialization and string encoding

2010-07-23 Thread Joe Turner
However, now it seems my issue is with &'s in the data itself from the property list. If the plist contained an "&" somewhere, everything after that point is cut off (which makes sense). Is there any way around this? It seems I have to percent escape the data before posting, which (the only way

Re: NSPropertyListSerialization and string encoding

2010-07-23 Thread Kyle Sluder
On Fri, Jul 23, 2010 at 11:54 AM, Joe Turner wrote: > However, now it seems my issue is with &'s in the data itself from the > property list. If the plist contained an "&" somewhere, everything after that > point is cut off (which makes sense). Is there any way around this? It seems > I have to

Re: NSPropertyListSerialization and string encoding

2010-07-23 Thread Joe Turner
Hey, Thanks! It seems that all I had to do sanitize was encode &'s <'s >'s "'s and ''s, and then just do my normal percent encoding, and everything is now working great! Thanks! Joe On Jul 23, 2010, at 2:11 PM, Kyle Sluder wrote: > On Fri, Jul 23, 2010 at 11:54 AM, Joe Turner wrote: >> Howev

Re: NSBox with a NSPopUpButton

2010-07-23 Thread Sean McBride
Eric Gorr (mail...@ericgorr.net) on 2010-07-23 14:20 said: >So, what is the best method to create a NSBox with a NSPopUpButton? > > *SNIP* > >It seems strange that the HIG would say this is ok, but then have the >NSBox API not support itor, have I missed something? What you've missed is that

Re: NSBox with a NSPopUpButton

2010-07-23 Thread Kyle Sluder
On Fri, Jul 23, 2010 at 4:39 PM, Sean McBride wrote: > What you've missed is that this is something Carbon can do that Cocoa > cannot. :( If you launch IB and create a new Carbon window, add a Box, > then you can change its type to 'popup'. There's no reason you can't do this in Cocoa. It's just

Re: NSBox with a NSPopUpButton

2010-07-23 Thread Sean McBride
Kyle Sluder (kyle.slu...@gmail.com) on 2010-07-23 20:20 said: >On Fri, Jul 23, 2010 at 4:39 PM, Sean McBride wrote: >> What you've missed is that this is something Carbon can do that Cocoa >> cannot. :( If you launch IB and create a new Carbon window, add a Box, >> then you can change its type to

Nested UIScrollView: horizontal scrolling

2010-07-23 Thread Pierre de La Morinerie
Hello, I'm trying to scroll horizontally through a set of pages, where pages are grouped by two (and can be zoomed both together). So far, my view hierarchy is: • One outter UIScrollView that scrolls horizontally. • Several inner UIScrollView that contains two pages each, scrolli

Re: WebView pagination for printing

2010-07-23 Thread Michael Zornek
On 7/21/10 2:04 PM, "Flavio Donadio" wrote: >> - ensure pagination doesn't split table rows > > This is easy, but I am not sure if WebKit's implementation applies this > property to table-row elements: > > th, tr {page-break-inside: avoid;} WebKit does not support this CSS declaration. I belie