clarification about document type extensions

2012-12-10 Thread Rick C.
Hi, Hoping for some clarification here...with a Mac app if I set a bunch of extensions in a document type in my info.plist with the role of viewer will it cause my app to hijack these extensions and become the default app to open with? This is not my intention I just want my app to be able to

Re: FileWrapper iCloud

2012-12-10 Thread Mike Abdullah
On 2 Dec 2012, at 01:00, Dave Fernandes wrote: On 2012-12-01, at 5:05 PM, Mike Abdullah cocoa...@mikeabdullah.net wrote: On 1 Dec 2012, at 20:21, Dave Fernandes wrote: NSPersistentDocument always creates a MOC of type NSMainQueueConcurrencyType, even if it is created on a background

Remote cursor and keyboard

2012-12-10 Thread Eric E. Dolecki
I am using GameKit on two devices to have the x,y points from a UIView on one device sent to the other. The multiplier to match points is a * 1.5. I am moving a UIImageView of a cursor on the target device. It floats above a custom keyboard thing (not an iOS keyboard) the cursor will interact

Re: clarification about document type extensions

2012-12-10 Thread Sean McBride
On Mon, 10 Dec 2012 18:33:00 +0800, Rick C. said: Hoping for some clarification here...with a Mac app if I set a bunch of extensions in a document type in my info.plist with the role of viewer will it cause my app to hijack these extensions and become the default app to open with? This is not my

What rect does NSTextFieldCell use to draw its contents?

2012-12-10 Thread Kyle Sluder
It's my understanding that the intent of NSStringDrawing is to provide the exact same drawing as NSTextFieldCell. But the following code produces text that is offset by 2pt to the left from a standard NSTextFieldCell: @implementation MyTextFieldCell /* : NSTextFieldCell */ -

Re: How to implement readonly property

2012-12-10 Thread Matt Neuburg
On Sat, 08 Dec 2012 16:45:37 -0800, Greg Parker gpar...@apple.com said: Source: me, the author of the current @synchronized implementation. @synchronized performs the same synchronization as a pthread mutex. Wow, this is just like that scene in the Woody Allen movie where Marshall McLuhan shows

Re: NSPointerArray on iOS - truly __weak?

2012-12-10 Thread Matt Neuburg
Bump. I'd still like to hear about this. The docs have a *huge* box saying that iOS NSPointerArray is not doing __weak references, but it sure looks to me like it is. But I don't know how to test. Thanks for any help. m. On Fri, 30 Nov 2012 07:51:57 -0800, Matt Neuburg m...@tidbits.com said:

Is it possible to read a file icon from iOS file system?

2012-12-10 Thread Brad Stone
In iOS is there a way I can get access a file's icon? I use [NSWorkspace iconForFile] in OS X. I looked a lot yesterday and I don't **think** there is a way in iOS. My OS X app has an iOS client and the files will be synced using iCloud. My app's document structure is a file package with

Re: Is it possible to read a file icon from iOS file system?

2012-12-10 Thread Brad Stone
Answered my own question. UIDocumentInteractionController @property(nonatomic,readonly) NSArray *icons Discussion This property contains an array of UIImage objects containing the available icons for the given file. The images in the array are sorted from smallest to largest, with the smallest

Simple Auto-Layout problem

2012-12-10 Thread Eric Gorr
Well, at least it looks like it should be a simple one. I have a sample project at: http://ericgorr.net/cocoadev/autolayout01.zip If you run the app and resize the window to be it's smallest and then larger, the button will not be drawn correctly, if at all. If one makes the window bigger

Re: How to capture a video stream

2012-12-10 Thread gary . gardner
On Dec 5, 2012, at 19:53 , gary.gard...@brokensoftware.com wrote: Do I need to use CoreMedia to actually get an image from the sampleBuffer? Using Xcode, it appears that UIImage is for iOS (this is just a supposition). So XCode changes the code to CIImage. If this is the wrong direction,

[MEET] CocoaHeadsNYC this Thursday, Dec 13

2012-12-10 Thread Andy Lee
When: Thursday, December 13, 2012, 6:30-8:00 PM, followed by pizza at Patsy's. What: Peter Hosey will be our special long-distance guest speaker, via Google Hangout. Peter will talk about AppCode. If you've been wondering about AppCode, you won't want to miss this meeting. As always, we'll