Re: Another app's UTI can break your app

2014-06-11 Thread Noah Desch
On Jun 10, 2014, at 3:21 PM, Seth Willits wrote: > My app and Coda both open plain text .sql files. Coda exports a UTI for the > .sql extension. So does my app. If .sql files are a public format that was defined by neither your app nor Coda, you should both be *importing* UTIs for it, instea

Re: Framework for ambient light level?

2014-04-24 Thread Noah Desch
> On Apr 24, 2014, at 5:34 PM, Rick Mann wrote: > > >> On Apr 24, 2014, at 14:10 , William Squires wrote: >> >> iii) Averages all the pixels to come up with a (rough) gauge of ambient >> light level (as an unsigned byte) - preferably by using the graphics >> coprocessor to unload the tas

Re: Strange toolbar/view/resize cursor interaction

2014-04-21 Thread Noah Desch
I have an NSOpenGL view in a window with a nib-based toolbar that behaves correctly, so I don't think the OpenGL machinery is completely ignorant of toolbars. Noah Desch > > That sounds correct, but IIRC the methods that convert between a window’s > content size and its fr

Re: [ANN] WFBezierCombinatorics

2014-03-07 Thread Noah Desch
Graham, I’d be glad to see how it performs with your additional test cases. Although I spent quite a bit of time handling special cases this is very much a work in progress and I appreciate any help anyone is willing to throw in. I didn’t follow a specific algorithm, although much of the cubic

[ANN] WFBezierCombinatorics

2014-03-07 Thread Noah Desch
I’ve written a category on NSBezierPath that allows boolean operations on paths (union, intersection, subtraction) which preserves curved elements throughout the operation and does not require "flattening" paths into line segments prior to processing. I thought this might be a generally useful

Re: Core Data with ODBC databases?

2013-10-18 Thread Noah Desch
I'm not sure why you need access to the NSSaveChangesRequest "transactions" at the application layer? In your optimistic locking example, your NSIncrementalStore gets a save request at step 5. It tries to commit the changes to the server, but the server comes back and says "transaction back ou

Re: UIPageViewController page index woes

2013-09-28 Thread Noah Desch
or the one who's kindOfClass is [UIPageControl class] and set whatever colors you want on it. This *might* be a gray area in terms of using undocumented API though. -Noah On Sep 26, 2013, at 5:06 PM, Noah Desch wrote: > I'm having the same issue. When I dive into the view hierarc

Re: UIPageViewController page index woes

2013-09-26 Thread Noah Desch
I'm having the same issue. When I dive into the view hierarchy in the debugger I see the page control inside the UIPageViewController's view, but it's frame is {0,0,0,0}. Noah Desch > On Sep 25, 2013, at 7:11 PM, Rick Mann wrote: > > >> On Sep 25, 2013,

Re: Core Data Reverse Engineering KickStarter Project

2013-06-25 Thread Noah Desch
Using coredata with a documented format should probably be accomplished with an NSIncrementalStore subclass rather than trying to reverse engineer the existing undocumented format. Noah Desch On Jun 25, 2013, at 11:30 AM, Scott Ribe wrote: > On Jun 25, 2013, at 8:44 AM, Steve Sisak wr

Re: Recomputing non-standard Core Data attributes when child MOC is saved?

2013-06-24 Thread Noah Desch
I have had really weird issues with NSManagedObjects KVOing themselves. I would recommend you instead override the dynamic setters for all the attributes whose value affects your computed property and clear your pre computed value there. Noah Desch On Jun 19, 2013, at 3:21 AM, Rick Mann

Re: Another basic CoreData question

2010-07-08 Thread Noah Desch
On Jul 8, 2010, at 7:33 PM, gumbo...@mac.com wrote: > Using the standard Employee/Department example, Whats the best way to set a > default department for an Employee? > So that every employee is created with a relationship to the "mailRoom" > department. Probably to add some custom code to

Re: My program causes MacBook Pro to use NVidia graphics processor

2010-05-04 Thread Noah Desch
Well your list includes: /System/Library/Frameworks/OpenGL.framework/Resources//GLRendererFloat.bundle/GLRendererFloat /System/Library/Frameworks/OpenGL.framework/Resources/GLEngine.bundle/GLEngine /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libCoreVMClient.dylib /System/Lib

Re: How do I get a file reference w/o relying on the path?

2010-04-18 Thread Noah Desch
gBookmarkData:bookmarkData > options:0 relativeToURL:nil bookmarkDataIsStale:&isStale error:&error]; > NSLog(@"url = %@", [url description]); > > if (error != nil) { > [NSApp presentError:error]; >

Re: How do I get a file reference w/o relying on the path?

2010-04-18 Thread Noah Desch
On Apr 18, 2010, at 10:43 AM, Brad Stone wrote: > I'm storing the bookmark data in an array displayed in a table: > NSData *bookmarkData = [inAbsoluteURL > bookmarkDataWithOptions:NSURLBookmarkCreationSuitableForBookmarkFile > > inc

Re: ObjC question

2010-04-10 Thread Noah Desch
On Apr 10, 2010, at 7:02 PM, Tony Romano wrote: > Thanks for the reply but I am not sure I follow your point. An instance of > 'f' is contained precisely in one instance of Bar. I can have many Bars but > each have their own instance of the class Foo. Does the language support > getting th

NSURLEffectiveIconKey with bookmark data

2010-04-09 Thread Noah Desch
My application displays a potentially long list of items in an NSTableView. One of the columns represents files on the user's hard drive. This column is driven by the new bookmark data from the NSURL class. The bookmark data does not appear to be able to save effective icon data, however other

Re: Solving memory leaks

2010-03-27 Thread Noah Desch
> but *not* this: > self.myFields = [[NSMutableArray alloc] init]; > > That's a memory leak right there. :) This discussion is confusing me a bit... lets see if I got this right: If you are *not* using getters and setters but instead have myFields declared as: @interface MyClass {

Re: Weird release problem on iPhone code

2010-03-18 Thread Noah Desch
You don't own any of those objects so you should not be releasing them. See: http://developer.apple.com/mac/library/documentation/cocoa/conceptual/MemoryMgmt/Articles/mmRules.html -Noah On Mar 18, 2010, at 11:43 PM, William Squires wrote: > I have some code like below in a UITableView delegat

Re: [NSTableview] can't make selected text stay black

2010-03-05 Thread Noah Desch
Cells highlight using white text based on the background style as far as I can tell. Try: [cell setBackgroundStyle:NSBackgroundStyleLight]; Instead of setting the text color. -Noah On Mar 5, 2010, at 5:25 PM, Kent Hauser wrote: > Hi, > > I'm trying to make a NSTableView selected row not l