Re: auto malloc[27012]: attempted to remove unregistered weak referrer

2012-01-20 Thread Marco S Hyman
On Jan 20, 2012, at 8:59 PM, Kyle Sluder wrote: >> Update... sometimes I'm getting this error, too... >> >> malloc: reference count underflow for 0x40048fb00, >> >> Garbage collected app, Xcode 4.2.1, Lion 10.7.2. >> >> The breakpoint is inside of NSOpenPanel -runModal but ONLY occurs when

Re: auto malloc[27012]: attempted to remove unregistered weak referrer

2012-01-20 Thread Kyle Sluder
On Jan 20, 2012, at 2:18 PM, Marco S Hyman wrote: > On Jan 18, 2012, at 3:47 PM, Marco S Hyman wrote: > >> I've done some searches and haven't found anything regarding this >> in my situation. An appropriate RTFM pointer would be appreciated. > > Update... sometimes I'm getting this error, too

Re: Cocoa-dev Digest, Vol 9, Issue 28

2012-01-20 Thread lpeng...@gmail.com
Re: The desired output is something like: NSString *template = @"HH:mm:ss EEE dd. MMM zzz"; NSString *dateFormat = [ NSDateFormatter dateFormatFromTemplate: template options: 0 locale: nil ]; NSDateFormatter *dateFormatter = [ [ NSDateFormatter alloc ] init ]; [ dateFormatter setDateFormat:

Re: Cocoa-dev Digest, Vol 9, Issue 28

2012-01-20 Thread lpeng...@gmail.com
Re: logged: auto malloc[27012]: attempted to remove unregistered weak referrer 0xblahblah multiple times. What is most interesting is that it only happens when selecting multiple items by dragging. I first noticed it in this code: - (IBAction) showOpenPanel: (id) sender { BOOL reloadNeeded =

Re: Cocoa-dev Digest, Vol 9, Issue 28

2012-01-20 Thread lpeng...@gmail.com
My Java processes do not quit if I pipe their output to null: �NSTask *task = [NSTask new]; �[task setLaunchPath:execPath]; �[task setCurrentDirectoryPath:_directory]; �[task setArguments:arguments]; �[task setStandardError:[NSFileHandle fileHandleWithNullDevice]]; �[task setStandardOutput:[NSFileH

NSSlider and arrangedObjects

2012-01-20 Thread Tobias Wood
Hi everyone, I am attempting to bind an NSSlider to a property of every object in an NSArrayController, rather than just the current selection. There are other properties that are bound to the selection, but this particular one I want to change for everything, regardless. The array managed by th

Re: NSTask terminates when NSApplication exits (Scott Ribe)

2012-01-20 Thread lpeng...@gmail.com
Re: NSTask terminates when NSApplication exits (Scott Ribe) Ling Peng 在 2012年1月19日,4:02,cocoa-dev-requ...@lists.apple.com 写道: > Re: NSTask terminates when NSApplication exits (Scott Ribe) ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please

While running our iPhone app, the screen sometimes goes white and locks up. Any idea why?

2012-01-20 Thread G S
This just started happening recently, but then again I've made lots of changes to our app. It's not very frequent, and so far there's no discernible pattern. But every once in a while, the entire phone screen will turn white and there's no way to get rid of it in the app. There's no status bar,

Re: NSCollectionView and selecting a range?

2012-01-20 Thread Lee Ann Rucker
On Jan 20, 2012, at 4:39 AM, Robert Monaghan wrote: > Hi Everyone, > > This has been asked before by another Cocoa-dev follower, but there wasn't an > answer... > I have an NSCollectionView where I want to be able to "Shift-click" a range > of Icons. > > Strangely, I can Command-click a range

Re: auto malloc[27012]: attempted to remove unregistered weak referrer

2012-01-20 Thread Corbin Dunn
On Jan 20, 2012, at 7:07 AM, Sean McBride wrote: > On Wed, 18 Jan 2012 15:47:47 -0800, Marco S Hyman said: > >> I've done some searches and haven't found anything regarding this >> in my situation. An appropriate RTFM pointer would be appreciated. >> >> I'm running a *garbage collected* applic

Re: auto malloc[27012]: attempted to remove unregistered weak referrer

2012-01-20 Thread Corbin Dunn
On Jan 18, 2012, at 3:47 PM, Marco S Hyman wrote: > I've done some searches and haven't found anything regarding this > in my situation. An appropriate RTFM pointer would be appreciated. > > I'm running a *garbage collected* application in Lion (10.7.2) that was > most recently compiled using X

Re: auto malloc[27012]: attempted to remove unregistered weak referrer

2012-01-20 Thread Marco S Hyman
On Jan 18, 2012, at 3:47 PM, Marco S Hyman wrote: > I've done some searches and haven't found anything regarding this > in my situation. An appropriate RTFM pointer would be appreciated. Update... sometimes I'm getting this error, too... malloc: reference count underflow for 0x40048fb00,

Re: NSTextView : Scroll top when bound-to string changes

2012-01-20 Thread Kyle Sluder
On Fri, Jan 20, 2012 at 11:22 AM, Jerry Krinock wrote: > Well, apparently this does not have a simple answer. > > I removed the binding from my text view and instead added an IBOutlet for it, > so I can use setAttributedString:, followed by setScrollPoint:. > > Conclusion: Although it has some bi

Re: NSTextView : Scroll top when bound-to string changes

2012-01-20 Thread Jerry Krinock
Well, apparently this does not have a simple answer. I removed the binding from my text view and instead added an IBOutlet for it, so I can use setAttributedString:, followed by setScrollPoint:. Conclusion: Although it has some bindings available, NSTextView is like NSMenu and NSMenuItem in tha

Re: auto malloc[27012]: attempted to remove unregistered weak referrer

2012-01-20 Thread Sean McBride
On Wed, 18 Jan 2012 15:47:47 -0800, Marco S Hyman said: >I've done some searches and haven't found anything regarding this >in my situation. An appropriate RTFM pointer would be appreciated. > >I'm running a *garbage collected* application in Lion (10.7.2) that was >most recently compiled using X

NSTextView : Scroll top when bound-to string changes

2012-01-20 Thread Jerry Krinock
I've bound the 'Attributed String' of an NSTextView. This view a detail view; its text changes whenever the user changes the selection in an associated table. Upon changing, the text scrolls to the bottom. I want it to stay at the top. I understand that I can scroll back to the top by sendin

NSCollectionView and selecting a range?

2012-01-20 Thread Robert Monaghan
Hi Everyone, This has been asked before by another Cocoa-dev follower, but there wasn't an answer... I have an NSCollectionView where I want to be able to "Shift-click" a range of Icons. Strangely, I can Command-click a range of individual icons, but a shift-click of a range will not work. Wha