Detecting lack of user input system wide.

2009-12-10 Thread Kenny Carruthers
Hello, What is the correct way to detect that there has been no keyboard or mouse input by the user over a given period of time? Ideally, I'd like my application to stop a timer if there is no activity at all from the user in any application. Think of a time tracking app that stops tracking time a

Re: IKImageBrowserView is not reloading data.

2009-05-12 Thread Kenny Carruthers
x27;s reloadData should do the trick. Best wishes, Peter Peter Schols Orbicule http://www.macnification.com/ Date: Mon, 11 May 2009 01:25:58 -0700 From: Kenny Carruthers Subject: IKImageBrowserView is not reloading data. To: cocoa-dev@lists.apple.com Message-ID: <32a26af6-fb7b-48d0-af68-d

IKImageBrowserView is not reloading data.

2009-05-11 Thread Kenny Carruthers
Hi, Given an IKImageBrowserView that is populated with valid IKImageBrowserItem, calling 'reloadData' on the image browser view does not actually reload the data for me. The documentation says that it "Marks the receiver as needing its data reloaded" but how and when does the reload actua

NSButtonCell Bindings

2008-08-08 Thread Kenny Carruthers
Referring to the Cocoa Binding Reference documentation: http://developer.apple.com/documentation/Cocoa/Reference/CocoaBindingsRef/BindingsText/NSButtonCell.html NSButtonCell has a binding for 'argument' and 'target', which are accessible inside Interface Builder. However, these binding values

Should you unbind an ArrayController for performance reasons?

2008-07-31 Thread Kenny Carruthers
This is a follow-up post to an earlier post I made regarding the performance of updating a relationship property in thousands of managed objects. After some profiling with Instruments, it became clear that the performance bottle neck was actually in NSArrayController. Since that ArrayContr

Showing another sheet in openPanelDidEnd

2008-07-29 Thread Kenny Carruthers
Does anyone know why any attempts to show a second sheet immediately after an NSOpenPanel has been dismissed causes the parent window to disappear? The user flow is as follows: - Show Import Window - Show NSOpenPanel via [panel beginSheetForDirectory...] (Panel is properly displayed

Re: Efficient Updating of Thousands of NSManagedObject Relationships

2008-07-28 Thread Kenny Carruthers
Even building up an array of managedobjects and then passing that to the set returned from mutableSetValueForKey results in extremely long updates. For example, I just tried moving 1300 songs to a playlist and while it took almost no time to fetch each song from the managed context and buil

Efficient Updating of Thousands of NSManagedObject Relationships

2008-07-28 Thread Kenny Carruthers
the songs are in the proper playlist, it just takes the machine ages to process the changes (like 0.5 to 1 second per object). Thank You. Kenny Carruthers ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests o