Re: addSubview: and positioning at the bottom of a NSWindow

2009-08-04 Thread Stefano Pigozzi
NSMakeRect(r.origin.x, r.origin.y, r.size.width, r.size.height + *however much you need*)]; Then set the frame of your subview and add it. On Aug 3, 2009, at 1:51 PM, Stefano Pigozzi wrote: Hello, I'm trying to do something simple, I have a NSWindow containing a NSTableView that resize

addSubview: and positioning at the bottom of a NSWindow

2009-08-03 Thread Stefano Pigozzi
Hello, I'm trying to do something simple, I have a NSWindow containing a NSTableView that resizes with the with the window. When I click on one element I want to display additional information in a subView that I'm adding with [[theWindow contentView] addSubview:infoView]; The problem is wh

Re: NSLevelIndicator Rating with "half" stars

2009-01-29 Thread Stefano Pigozzi
Just tried it, and [indicator setDoubleValue: 4.5] ends up showing 5 stars (setFloatValue gives same result). I'll probably have to make my custom control :( Stefano On Jan 29, 2009, at 11:24 AM, Matt Gough wrote: On 29 Jan 2009, at 11:13, Stefano Pigozzi wrote: Hello, Is there

NSLevelIndicator Rating with "half" stars

2009-01-29 Thread Stefano Pigozzi
Hello, Is there a way to display "half ratings" with NSLevelIndicator? For example having a rating of 4.5 would correspond to 4 stars and a half. It would be cool because I have to display some ratings on a scale from 0 to 10. Thank you in advance :) Stefa

Re: NSWindow setIgnoresMouseEvents and Spaces

2008-06-26 Thread Stefano Pigozzi
Il giorno 26/giu/08, alle ore 11:56, Jean-Daniel Dupas ha scritto: Le 26 juin 08 à 11:26, Stefano Pigozzi a écrit : Hello, I'm modding Apple's RoundTransparentWindow sample in order to draw a gradient overlay on all the screen (to fix the non uniform lighting on my iMa

NSWindow setIgnoresMouseEvents and Spaces

2008-06-26 Thread Stefano Pigozzi
Hello, I'm modding Apple's RoundTransparentWindow sample in order to draw a gradient overlay on all the screen (to fix the non uniform lighting on my iMac's screen). The applicazion works quite nicely but when I'm switching to another space using the 3d effect method my application doesn'