Re: trackingAreas can be snuck up on without triggering?

2012-05-21 Thread mlist0...@gmail.com
Bug ID# 11502520. _murat On May 20, 2012, at 11:42 PM, Lee Ann Rucker wrote: > Heh. I'd file a bug with Apple - this could be an edge case they didn't > consider when they redid grow zones. At the very least they could make sample > code showing what they're doing behind the scenes with the tr

Re: Bidirectional, Manual Binding in custom control

2012-05-21 Thread Quincey Morris
On May 21, 2012, at 20:44 , Jerry Krinock wrote: > and then binding to it in the window controller's -awakeFromNib like this… > [starRatingView bind:@"rating" >toObject:fooController > withKeyPath:@"selection.rating" > options:beForgiving] ; > -(void)setRating:(fl

Bidirectional, Manual Binding in custom control

2012-05-21 Thread Jerry Krinock
I modified a "Star Rating" control to be bindings compatible by adding this… + (void)initialize { [self exposeBinding:@"rating"] ; } and then binding to it in the window controller's -awakeFromNib like this… // beForgiving is to handle NSNoSelectionMarker & friends… NSDictionary* beForgiving

Re: NSTextInputClient Protocol Question

2012-05-21 Thread Aki Inoue
Hello Eric, > - (NSUInteger) characterIndexForPoint: (NSPoint) iPoint > - (NSRect) firstRectForCharacterRange: (NSRange) iRange actualRange: > (NSRangePointer) oActualRange > never get called, which I suppose are here for handling mouse events and thus > the selection ? The methods are for the

Re: Color matching multiple images in one bitmap

2012-05-21 Thread Clarence Locke
On May 21, 2012, at 9:36 AM, Kyle Sluder wrote: > A more fundamental question: is it actually necessary for you to use a bitmap > graphics context? I believe a PDF context will retain the color space > information of the images drawn into it, which means that only one color > space conversion w

Re: Sandbox console messages

2012-05-21 Thread Nick Zitzmann
On May 21, 2012, at 9:41 AM, Peter Krajčík wrote: > Hello, > I'm trying to migrate an existing application to sandboxing (on Lion). > > It is just a regular document-based app, doesn't do anything wild. > > I've enabled user selected file access (read/write). > > Sometimes I get this message i

Re: Sandbox console messages

2012-05-21 Thread Corbin Dunn
Hi Peter, Can you log these as bugs (bugreporter.apple.com); it sounds like they are bugs in the system which you may not have control over. Please be sure to include steps to reproduce, backtraces, and ideally sample code that reproduces it. Thanks! corbin On May 21, 2012, at 8:41 AM, Peter K

Re: Exclude or Negate NSComparisonPredicate

2012-05-21 Thread Tim Schröder
I use this code to search for something *not* containing someString with NSMetadataquery: predicate = [NSPredicate predicateWithFormat:@"NOT kMDItemFSName LIKE '%@'", someString]; As NSMetadataQuery only uses a subset of the NSPredicate syntax, I doubt whether using NSCompoundPredicate or some

Re: Exclude or Negate NSComparisonPredicate

2012-05-21 Thread Dave DeLong
You'd keep most of what you have, but just add in the negation: On May 21, 2012, at 11:47 AM, Chris Paveglio wrote: > I'm doing an NSMetadataQuery something like this: > > NSPOT = NSLikePredicateOperatorType; > myPredicate = [NSComparisonPredicate > predicateWithLeftExpression:[NSExpressionexpre

Exclude or Negate NSComparisonPredicate

2012-05-21 Thread Chris Paveglio
I'm doing an NSMetadataQuery something like this: NSPOT = NSLikePredicateOperatorType; myPredicate = [NSComparisonPredicate predicateWithLeftExpression:[NSExpressionexpressionForKeyPath:@"*"]  rightExpression:[NSExpressionexpressionForConstantValue:@"somestring"] modifier:NSDirectPredicateModifier

Sandbox console messages

2012-05-21 Thread Peter Krajčík
Hello, I'm trying to migrate an existing application to sandboxing (on Lion). It is just a regular document-based app, doesn't do anything wild. I've enabled user selected file access (read/write). Sometimes I get this message in the console: 5/21/12 3:28:35.002 AM sandboxd: ([7221]) MyAppName(7

Re: Color matching multiple images in one bitmap

2012-05-21 Thread Kyle Sluder
On May 20, 2012, at 9:42 AM, Clarence Locke wrote: > (This was originally posted to the Colorsync-dev list about three weeks ago > without any activity on the list, so I'm hoping that someone here can help) > > I have an app that is essentially creating a single resultant image from an > amal

Crashes in com.apple.QuickLookFramework/com.apple.QuickLookUIFramework

2012-05-21 Thread Dragan Milić
I use QL API in my application to preview all kind of files (the application is actually a kind of file browser). Before going into real problems, I just want to say I'm just using simple QLPreviewPanel, no hacks or tweaks of any kind. Also, I'm not using any private or non-documented APIs. I al

Re: dlopen error

2012-05-21 Thread Roland King
This has gone into my Mac Keepers folder, thank you so much Quincey, for the second time in a week. I never, ever, thought of clicking on the bold label at the left of the row, I always clicked the green shaded box. That way madness lies, or at least disappointment. I can confirm that clicking

Re: Window "snapping" to main screen

2012-05-21 Thread Eric Matecki
Thanks Quincy, this works ! On 07/05/12 11:56, Eric Matecki wrote: On 07/05/12 09:39, Quincey Morris wrote: On May 7, 2012, at 00:30 , Quincey Morris wrote: On May 7, 2012, at 00:14 , Eric Matecki wrote: mWindow = [[NSWindow alloc] initWithContentRect: contentSize styleMask: styleMask back

NSTextInputClient Protocol Question

2012-05-21 Thread Eric Matecki
Hi, I try to write my own text field, for cross-platform dev. reasons I don't have another choice, unfortunately... So, in my view, I have this: @interface MyOpenGLView : NSOpenGLView ... @end @implementation MyOpenGLView - (void) mouseDown: (NSEvent*) iEvent { if( mActiveTextButton )

Re: dlopen error

2012-05-21 Thread Quincey Morris
On May 21, 2012, at 00:20 , Roland King wrote: > I have serious trouble making that work. I've tried delete. I've > triedselecting other.. and remove text followed by Return. Tried > Command-Delete .. the damnable settings just stick there. Here are all the steps I use, and it really does work

Re: dlopen error

2012-05-21 Thread Roland King
On May 21, 2012, at 2:53 PM, Quincey Morris wrote: > On May 20, 2012, at 22:43 , Graham Cox wrote: > >> I'm not sure why Xcode (4) inserts a whole extra level of settings when the >> first level is fine, then doesn't give you a way to remove the second level >> of settings > > But it does … t