Re: Scripting Bridge Strange Pauses

2010-09-16 Thread John Nairn
On Sep 16, 2010, at 1:31 PM, Dave Keck wrote: It is running on main thread. I am not sure how to "profile." I tried "Thread State" in Instruments and it output data, but nothing unusual when the pause occurred. Is that the right tool? (Sorry, I meant 'sample' instead of 'profile.') When th

Re: bindings and NSNumberFormatter, enforcing min/max values

2010-09-16 Thread Ken Thomases
On Sep 16, 2010, at 5:06 PM, Quincey Morris wrote: > Regarding NSUserDefaults, I don't see anything in the documentation that > claims KVC compliance for NSUserDefaults, though I could easily have missed > it. You're not supposed to bind to the shared NSUserDefaults instance. There's a separa

Re: Why is NSPopUp broken in drop-down mode?

2010-09-16 Thread Kyle Sluder
On Thu, Sep 16, 2010 at 5:45 PM, G S wrote: > Thanks for that reference, Kyle, but it only refers to "Command > pop-down menus".  That's not what this is; the list contains regular > items that are not commands. It refers to the style of the control. Pull-down controls are intended to be filled w

Re: Why is NSPopUp broken in drop-down mode?

2010-09-16 Thread G S
On Thu, Sep 16, 2010 at 5:01 PM, Kyle Sluder wrote: >>if you select one in drop-down mode, it doesn't stick.  If you switch the >>control to pop-up mode, it works fine. > > That's precisely what pull-down buttons are supposed to do. See the > HIG: > http://developer.apple.com/library/mac/documen

Re: CGContextSelectFont spinlock

2010-09-16 Thread Stevo Brock
Great suggestion. Here's the full list of backtraces from the iPad (3.2.2)... Spin lock is in Thread 1 at the end... -Stevo Thread 11 (thread 14851): #0 0x33b11968 in select$DARWIN_EXTSN () #1 0x31528d82 in __CFSocketManager () #2 0x33b6678c in _pthread_start () #3 0x33b5c078 in thread_st

Re: NSOutlineView auto expand threshold

2010-09-16 Thread Jerry Krinock
On 2010 Sep 16, at 11:46, k...@highrolls.net wrote: > I found a hack in the archives to impose a delay on the auto expand when over > a parent node but was wondering if there is a 'preferred' or 'acceptable' > method of changing the auto expand threshold. If you're looking for a solution to th

Re: Why is NSPopUp broken in drop-down mode?

2010-09-16 Thread Kyle Sluder
On Thu, Sep 16, 2010 at 4:43 PM, G S wrote: > In Interface Builder 3.2.3 I dragged an NSPopUp onto a view and set it > to drop-down mode, then simulated the interface.  It doesn't work: The > default control contains three items, but if you select one in > drop-down mode, it doesn't stick.  If you

Why is NSPopUp broken in drop-down mode?

2010-09-16 Thread G S
Hi all. In Interface Builder 3.2.3 I dragged an NSPopUp onto a view and set it to drop-down mode, then simulated the interface. It doesn't work: The default control contains three items, but if you select one in drop-down mode, it doesn't stick. If you switch the control to pop-up mode, it works

Re: bindings and NSNumberFormatter, enforcing min/max values

2010-09-16 Thread Martin Wierschin
Hi Quincey, Thank you very much for taking the time to reply and help me out. These diagrams are *very* old (2003, it looks like), and it's not clear if they're accurate any more. So anything deduced from them needs to be verified. However, they don't give you any good news, because they s

Re: CGContextSelectFont spinlock

2010-09-16 Thread Stevo Brock
My original solution is to call: [UIFont familyNames]; in the applicationDidFinishLaunching method to load the font database to avoid the deadlock. -Stevo On Sep 16, 2010, at 3:26 PM, A.M. wrote: > > On Sep 16, 2010, at 5:54 PM, Stevo Brock wrote: > >> Great suggestion. >> >> Her

Re: CGContextSelectFont spinlock

2010-09-16 Thread A.M.
On Sep 16, 2010, at 5:54 PM, Stevo Brock wrote: > Great suggestion. > > Here's the full list of backtraces from the iPad (3.2.2)... Spin lock is in > Thread 1 at the end... > > Thread 1 (thread 12035): > #0 0x33af18a4 in spin_lock () > #1 0x33af21aa in pthread_once () > #2 0x33d795a2 in CG

Re: bindings and NSNumberFormatter, enforcing min/max values

2010-09-16 Thread Quincey Morris
On Sep 16, 2010, at 14:00, Martin Wierschin wrote: > The quick summary: Actually, you've covered a lot of ground here, so there are multiple issues implicit in your question. If you look here: http://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/CocoaBindings/Concept

Re: Running Launch Chores, before document open Was: Modal Dialog … Crash

2010-09-16 Thread Jerry Krinock
Agreed; I don't like the idea of having to ensure that no "GUI Things" or "AppKit Stuff" would ever be done in anything I might invoke from -applicationWillFinishLaunching. I could easily forget this, or accidentally invoke someone else's code that might decide to, say, display an error dialog

Re: Foundation level object leaks

2010-09-16 Thread Ken Ferry
Hi Anna, Two things: If a dictionary is leaked, and the dictionary is holding strings, then both the strings _and_ the dictionary are reported as leaks. The tools aren't smart enough to figure out that one was just a consequence of the other. So I would ask here whether the dictionary was also

Foundation level object leaks

2010-09-16 Thread Anna Billstrom
Hi I'm testing a new build, and notice that there are NSCFString object leaks, the responsible library is "Foundation," and the responsible frame is "NSDictionary(NSDictionary)". In the past I believe I've ignored these, but now having a bit of conscientiousness. Do you all generally ignore the

bindings and NSNumberFormatter, enforcing min/max values

2010-09-16 Thread Martin Wierschin
Hello all, The quick summary: I want to display some formatted numbers in text fields. These numbers are stored in NSUserDefaults, and need to be displayed with unit suffixes, eg: "5 cm". If the user enters an invalid number, say a negative length, I simply want to clip the value to the app

Re: Scripting Bridge Strange Pauses

2010-09-16 Thread Dave Keck
> It is running on main thread. I am not sure how to "profile." I tried "Thread > State" in Instruments and it output data, but nothing unusual when the pause > occurred. Is that the right tool? (Sorry, I meant 'sample' instead of 'profile.') When the loop gets hung up, pause the program in the

sort an nstablecolumn to button cell state?

2010-09-16 Thread Michael Hanna
I have an NSTableColumn in an NSTableView that has only an NSButtonCell(checkbox). When the user clicks the table column header I'd like it to sort the table items according to whether or not the checkbox is selected. so the end result is that all checked items are grouped together(and all unchecke

Re: Cocoa Borderless Panel causes issues in PowerPlant/Carbon

2010-09-16 Thread Abdul Sowayan
Hi Kyle, Thanks for your response. > Did you try calling -setFloatingPanel: on the panel? Yes I did. When I do so, This is the dump I get: 0x1820f00 Document 283C V 3 Window 0x1822b90 "com.apple.HIToolbox.windowgroups.toolbar" Without calling -setFloatingPanel: I get

NSOutlineView auto expand threshold

2010-09-16 Thread koko
I found a hack in the archives to impose a delay on the auto expand when over a parent node but was wondering if there is a 'preferred' or 'acceptable' method of changing the auto expand threshold. -koko ___ Cocoa-dev mailing list (Cocoa-dev@lists.

Re: Cocoa Borderless Panel causes issues in PowerPlant/Carbon

2010-09-16 Thread Kyle Sluder
On Thu, Sep 16, 2010 at 7:34 AM, Abdul Sowayan wrote: > When Cocoa Panel has a border, the Cocoa Panel is considered a ³Floating² > Window. > When Cocoa Panel does not have a border, the Cocoa Panel is considered a > ³Document² Window. Did you try calling -setFloatingPanel: on the panel? --Kyle

SetSystemUIMode issue

2010-09-16 Thread Shaguo
Hi all, In my application, a window has full screen function. I use the followings to implenment the fullscreen, SetSystemUIMode(kUIModeAllHidden, kUIOptionAutoShowMenuBar); So it will tell other application the event and hide menu and dock. The minimize button is disabled in other application w

Cocoa Borderless Panel causes issues in PowerPlant/Carbon

2010-09-16 Thread Abdul Sowayan
Hi folks, I am having Carbon/PowerPlant and Cocoa integration issue. I was hoping someone might have an insight into this problem. Any feedback would be greatly appreciated. A reproducer program that shows the problem can be found at: http://ericgorr.net/cocoadev/BorderlessWindow.zip My applic

Re: Scripting Bridge Strange Pauses

2010-09-16 Thread John Nairn
I have been having problems calling my Cocoa app with Python scripts through the Scripting Bridge. To test further, I wrote the following Cocoa code to use the Scripting Bridge. For a large file (over 7000 elements in the SBElementArray recs variable) it runs smoothly until 77% completion a

Animated scrolling of NSScrollView

2010-09-16 Thread Kenneth Baxter
I see that UIScrollView has the option to animate scrolling, but I don't see any equivalent for NSScrollView, and the scrolling methods don't seem to be supported by implicit animation. My document view is a layer hosting view, so I looked at the CA scrolling layer, but that seems to be somethi

Re: NSManagedObjectContextDidSaveNotification across MOCs on two threads

2010-09-16 Thread Roland King
On 16-Sep-2010, at 12:01 AM, Jerry Krinock wrote: > > On 2010 Sep 15, at 07:02, Roland King wrote: > >> Checking the documentation for NSNotificationCenter however I see that the >> notifications are processed in the thread in which they were sent, that of >> course will be my indexing thread a

Re: sync core-data store between OS X and iOS

2010-09-16 Thread Martin Hewitson
On Aug 26, 2010, at 5:13 PM, Nick Zitzmann wrote: > > On Aug 26, 2010, at 12:01 AM, Martin Hewitson wrote: > >> That's what I feared. Too bad. How are others doing this then? Or are they >> not? I couldn't find any 3rd party solutions - only ones that work over >> bonjour which typically have