Re: Window positioning and screen resizing

2013-05-14 Thread Ken Thomases
On May 13, 2013, at 7:57 PM, Rick Mann wrote: It seems that Cocoa or the OS or someone repositions my windows with some rules when the screen resolution changes. Does anyone know what the rules are? Stuff is kept in roughly the same quadrant of the screen, near as I can tell, and perhaps

Re: Window positioning and screen resizing

2013-05-14 Thread Rick Mann
On May 13, 2013, at 23:19 , Ken Thomases k...@codeweavers.com wrote: I believe the top-left corner is kept in the same relative position to the top-left corner of the screen, unless that would leave part of the window off-screen. If it would, then the top-left corner is moved to get the

Re: way to update Apple Menu's Recents Items

2013-05-14 Thread Nick Rogers
Hi, But a commercially available program is doing it. And I have gone through process list in activity monitor before and after Recent Items is updated by this program. And found no difference in number of processes or any change in PIDs of the processes. Means probably no re-spawning. I have

Document Window Versions Drop-down Menu

2013-05-14 Thread Vincent CARLIER
Hi all, I'm writing a document based app. Each document is displayed in a window, and can have several other windows too. The primary window and the others are the same (same NIB, same window controller), each window is able to display a different part of the document data. At the beginning,

Re: Window positioning and screen resizing

2013-05-14 Thread John Joyce
On 2013/05/14, at 9:57, Rick Mann rm...@latencyzero.com wrote: It seems that Cocoa or the OS or someone repositions my windows with some rules when the screen resolution changes. Does anyone know what the rules are? Stuff is kept in roughly the same quadrant of the screen, near as I can

Re: Window positioning and screen resizing

2013-05-14 Thread Rick Mann
On May 14, 2013, at 00:09 , John Joyce dangerwillrobinsondan...@gmail.com wrote: Presumably, you should not rely on or infer the logic of what the system does for you, but rather just respond as appropriate for your own needs. Thanks, John. I'm fairly familiar, at this point, with the

Re: Document Window Versions Drop-down Menu

2013-05-14 Thread Quincey Morris
On May 14, 2013, at 00:07 , Vincent CARLIER vince.carl...@gmail.com wrote: Is there a way to put the menu on other windows too, is there any available API to do that ? All document windows should have the menu. My guess is that you forgot to invoke '-[NSDocument addWindowController:]' on the

Re: Document Window Versions Drop-down Menu

2013-05-14 Thread Vincent CARLIER
Hi Quincey, thank you for the quick answer. Unfortunately, no, I didn't forget to add the window controllers using the method you mention. At document creation/opening, a first WC is created (I mean alloc/init), added to the document, and released. As the user request additional windows, the

Re: Document Window Versions Drop-down Menu

2013-05-14 Thread Vincent CARLIER
-(IBAction)openDocumentInNewWindow:(id)sender { AMDocumentWindowController *dwc = [[AMDocumentWindowController alloc] init]; [[self document] addWindowController:gpdwc]; [gpdwc release]; [gpdwc showWindow:self]; } Typo here, WC reference name is dwc, not gpdwc. Sorry. 2013/5/14

Re: way to update Apple Menu's Recents Items

2013-05-14 Thread Mike Abdullah
Read up on NSDocumentController; it's in charge of that menu. On 14 May 2013, at 04:50, Nick Rogers roger...@mac.com wrote: Hi, I can remove the recent items from the plist where they are stored. But when I try and update the Recent Items submenu, it doesn't. I'm getting Apple Menu by

Sandboxed app record-level indexing of Core Data in Spotlight (not working)

2013-05-14 Thread Giacomo Tufano
I'm trying to create a spotlight importer for a core data application, using the record level indexing as descripted in the Core Data Spotlight Integration Programming Guide. I have a working .mdimporter that works correctly if I copy the importer in /Library/Spotlight (it will index and

Re: Sandboxed app record-level indexing of Core Data in Spotlight (not working)

2013-05-14 Thread Vincent CARLIER
Date: Tue, 14 May 2013 12:07:02 +0200 From: Giacomo Tufano g...@iltofa.com To: cocoa-dev@lists.apple.com Subject: Sandboxed app record-level indexing of Core Data in Spotlight (not working) Message-ID: 127dc0cb-c922-435c-adba-e873e8593...@iltofa.com Content-Type: text/plain;

Re: Document Window Versions Drop-down Menu

2013-05-14 Thread Vincent CARLIER
To illustrate the issue, I created a simple test project that you can clone from Bitbucket : https://bitbucket.org/vincedev/tesdocapp.git As you will see, the menu item opens a second (and any number) of windows for the document, but only the first has got the menu. Vince. 2013/5/14 Vincent

Re: Sandboxed app record-level indexing of Core Data in Spotlight (not working)

2013-05-14 Thread Giacomo Tufano
Il giorno 14/mag/2013, alle ore 13:00, Vincent CARLIER vince.carl...@gmail.com ha scritto: I have a working .mdimporter that works correctly if I copy the importer in /Library/Spotlight (it will index and spotlight find the documents). The problem is that the embedded importer in the

Re: Sandboxed app record-level indexing of Core Data in Spotlight (not working)

2013-05-14 Thread Vincent CARLIER
Re gt, 2013/5/14 Giacomo Tufano g...@iltofa.com Il giorno 14/mag/2013, alle ore 13:00, Vincent CARLIER vince.carl...@gmail.com ha scritto: I have a working .mdimporter that works correctly if I copy the importer in /Library/Spotlight (it will index and spotlight find the documents). The

Re: ImageKit questions

2013-05-14 Thread Fritz Anderson
On 13 May 2013, at 10:01 PM, Eric Slosser eric.slos...@v-fx.com wrote: 1) If you want to tell an IKScannerDeviceView what values to use when it first appears, you might find the keys revealed by the following command helpful: defaults read com.apple.Image_Capture | grep IK_ These

Re: way to update Apple Menu's Recents Items

2013-05-14 Thread Kyle Sluder
On May 14, 2013, at 2:12 AM, Mike Abdullah cocoa...@mikeabdullah.net wrote: Read up on NSDocumentController; it's in charge of that menu. I don't think this has been the case for an OS revision or two (either since Apple merged the “recent items count” preferences or when they added

Re: Document Window Versions Drop-down Menu

2013-05-14 Thread Kyle Sluder
On May 14, 2013, at 1:33 AM, Vincent CARLIER vince.carl...@gmail.com wrote: No matter what I do, only the first window (that is the window managed by the first WC created for the document) gets the menu. What does the secondary window return for -isExcludedFromWindowsMenu? It's possible that

Re: Document Window Versions Drop-down Menu

2013-05-14 Thread Quincey Morris
On May 14, 2013, at 04:30 , Vincent CARLIER vince.carl...@gmail.com wrote: As you will see, the menu item opens a second (and any number) of windows for the document, but only the first has got the menu. Yes, now you've pointed this out, I can see the same (mis)behavior in my own apps.

Re: way to update Apple Menu's Recents Items

2013-05-14 Thread Lee Ann Rucker
On May 14, 2013, at 2:12 AM, Mike Abdullah wrote: Read up on NSDocumentController; it's in charge of that menu. It's in charge of File- Recent, but not Apple - Recent. On 14 May 2013, at 04:50, Nick Rogers roger...@mac.com wrote: Hi, I can remove the recent items from the plist where

Re: Minor Scriptability Quesiton

2013-05-14 Thread Seth Willits
On May 14, 2013, at 4:55 PM, Seth Willits wrote: Any thoughts on what I should do to be able to name the button for accessibility? Addendum: Discovered -accessibilitySetOverrideValue:forAttribute: but that has no effect. The title is still empty. -- Seth Willits

sandboxing and filename extensions

2013-05-14 Thread Scott Ribe
On 10.6.8, if I enter a plain filename without extension, the save panel returns the path with the extension appended. On 10.7.5, where sandboxing kicks in and this actually matters because the code cannot normalize the returned name, the save panel returns the path WITHOUT extension. The code