UIDocument's fileType reports wrong UTI.

2013-10-23 Thread Half Activist
Hello, In an iOS project, that is supposed to handle different kind of files, I declared in Info.plist the types handled, with two UTI types, say com.mycompany.typeA and com.mycompany.typeB. I also added the expected filename extensions for the two, suppose it's .typeA and .typeB.

Re: UIDocument's fileType reports wrong UTI.

2013-10-23 Thread Half Activist
/dict /array On Oct 23, 2013, at 3:10 PM, Mike Abdullah mabdul...@karelia.com wrote: On 23 Oct 2013, at 13:08, Half Activist halfactiv...@gmail.com wrote: Hello, In an iOS project, that is supposed to handle different kind of files, I declared

Re: UIDocument's fileType reports wrong UTI.

2013-10-23 Thread Half Activist
, would it appear fake? No? Yet it would have been as much. On Oct 23, 2013, at 5:20 PM, Kyle Sluder k...@ksluder.com wrote: On Oct 23, 2013, at 6:17 AM, Half Activist halfactiv...@gmail.com wrote: Here's the Info.plist section keyCFBundleDocumentTypes/key array dict

Re: Fastest way to do screen captures on OSX ?

2013-10-16 Thread Half Activist
Definitely not using CGWindowListCreateImage. In the past, inspired by some code, i wrote a screen capture test program using opengl, the trick was to declare a fullscreen context without a curtain window or setting it to transparent and then reading the pixels, and that was quite fast, on a G4

Re: How test whether Mac app is running in Xcode?

2013-10-15 Thread Half Activist
I'd suggest you give a look at getppid(), and try to retrieve the parent's path using sysctl with KERN_PROCARGS2. For more info try google: sysctl KERN_PROCARGS2. Regards. On Oct 15, 2013, at 1:12 PM, cocoa-dev-requ...@lists.apple.com wrote: Date: Tue, 15 Oct 2013 07:12:11 -0400 From: Bill

UINavigationController subclass won't load its nib.

2013-10-11 Thread Half Activist
Hi, To put it shortly, my UINavigationController doesn't load its assigned NIB at all. I've got an UINavigationController subclass that contains the code for an object inspector in an app i'm writing. It's declared as the file's owner of a nib of the same name, this nib

Re: Cocoa-dev Digest, Vol 10, Issue 633

2013-10-04 Thread Half Activist
On 2013 Oct 03, at 00:12, Half Activist halfactiv...@gmail.com wrote: Well, the minSize is actually correctly set but that doesn't seem to be small enough for Versions on small desktops, I found a solution by implemeting the NSWindowDelegate methods below to set the minSize to 640x480

Re: Re: Window too large for Versions Browser

2013-10-03 Thread Half Activist
){ self.mainWindow.minSize = NSMakeSize( 1200, 680 ); } } On Oct 2, 2013, at 7:56 PM, cocoa-dev-requ...@lists.apple.com wrote: On 2013 Oct 02, at 06:56, Half Activist halfactiv...@gmail.com wrote: 'NSInvalidArgumentException', reason: '*** -[NSDocumentRevisionsView

Window too large for Versions Browser

2013-10-02 Thread Half Activist
Hi, In a NSDocument based application, which mainWindow minSize is set to 1200x600, when entering the Versions browser, the application crashes after being notified that the window is too large and couldn't be resized on small screens. I've tried to solve it by setting the minimum

NSDatePickerCell in TableView/OutlineView

2011-09-06 Thread Half Activist
Hi, I'm starting using a nsdatepickercell in an outlineview, but cannot edit the values. The column is editable though, and my delegate returns YES for outlineView:(NSOutlineView *)outlineView shouldEditTableColumn:(NSTableColumn *)tableColumn item:(id)item. I've read

Drag Drop/Pasteboard issue in Lion

2011-08-11 Thread Half Activist
Hello, I'm working on a project where i can drag items from the Address Book (persons) and drop them on a view to add them (actually read the vCard). Everything worked fine up to Lion. Now, the pasteboard gives me the type public.vcard as available, but no data is

Nested NSCollectionView scroll weirdness

2011-05-04 Thread Half Activist
Hello all, I'm having kind of troubles with embedded collection views. I'm displaying a list of items vertically, each of these items may have subitems i list in another collection view, this time horizontally. Everything fine so far, the NSCollectionViewItems get loaded

Re: NSDocument save as bug

2010-02-01 Thread Half Activist
, at 8:54 AM, Alexey Zakhlestin wrote: On 01.02.2010, at 10:13, Half Activist wrote: Hello, In a NSDocument based application, my document class handles 3 different kinds of documents, 1 as a viewer and 2 as an editor. Actually, I wished it could handle the 2 types as an editor

Re: NSDocument save as bug

2010-02-01 Thread Half Activist
I'm not making any assumption on the number of documents that might exist at one time. Even if i have 10 documents opened, the one that i do a save as on has its _instance method_ awakeFromNib called a second time: The callstack shows that my document's awakeFromNib is being called during the

Re: NSDocument save as bug

2010-02-01 Thread Half Activist
Hi Kyle, the problem is my save panel doesn't have an accessory view :S Regards. On Feb 1, 2010, at 6:28 PM, Kyle Sluder wrote: On Mon, Feb 1, 2010 at 9:16 AM, Half Activist halfactiv...@gmail.com wrote: Even if i have 10 documents opened, the one that i do a save as on has its

Re: NSDocument save as bug

2010-02-01 Thread Half Activist
it is called: (gdb) print (void *) self $1 = (void *) 0x100675c30 The second time: (gdb) print (void *) self $2 = (void *) 0x100675c30 Regards. On Feb 1, 2010, at 7:55 PM, Gregory Weston wrote: On Feb 1, 2010, at 12:16 PM, Half Activist wrote: I'm not making any assumption on the number

NSDocument save as bug

2010-01-31 Thread Half Activist
Hello, In a NSDocument based application, my document class handles 3 different kinds of documents, 1 as a viewer and 2 as an editor. Actually, I wished it could handle the 2 types as an editor but here is what happens: When I only have 1 type everything is ok as you

NSSavePanel crash!

2009-12-11 Thread Half Activist
Hello All, I'm developping a document-based application that up to today could read two document types and write one of the two. So one type was set as an editor the other one as viewer in the Info.plist. All the save/open panel stuff is the plain AppKit behavior and I

KVO cross dependencies

2009-11-13 Thread Half Activist
Hi all, I have sevral objects of different kind that observe values on each other. Now, when the objects are being released, I get an exception from the KVO stuff telling me that an object is being deallocated while still observed. And that's justified. Yet, the problem is in whatever

NSCollectionView issues

2009-10-16 Thread Half Activist
Hi, I'm using a NSCollectionView to display a stack of items (a table) but since what's display is far too complex to be laid out programmatically I went for the NSCollectionView. And it's been all problems from the beginning. First of all with setContent that never worked no matter what

Retain cycles with NIB instantiations, bindings

2009-07-10 Thread Half Activist
Hi, I'm loading a NIB file at runtime and use a new instance of a class as its owner each time. Everything works fine, until I wish to delete an object. In my software, i'm using several instances of objects that have their own UI but are all part of kind of project, a

Spaces: Receiving a space change notification.

2009-01-28 Thread Half Activist
Hello everyone, Is it possible to receive a notification when the active space changes? Or is it possible to programatically make an application display on all spaces? h.a. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do

Changing the default audio output hardware

2008-09-03 Thread Half Activist
Hi, Does anybody know how to change the system's default sound output programatically speaking of course ;-) Regards. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list.

is LSEnvironment working with Leopard?

2008-08-26 Thread Half Activist
Hello everyone, The subject sums it up: Is the LSEnvironment plist key still supported in Leopard? I've been trying to set an environment variable this way with no luck. I've read about the /var/db/.AllowDYLDEnvironmentVariables trick, and thought it might enable LSEnvironment,