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

2012-01-22 Thread lpeng...@gmail.com
Re: Cocoa-dev Digest, Vol 9, Issue 36 (lpeng...@gmail.com) 2. NSXMLParser, streams, multiple threads, and crashing (Thomas Davie) 3. Re: Strange renaming of Documents folder (Martin Hewitson) 4. Re: NSXMLParser, streams, multiple threads, and crashing (Andreas Grosam) 5. Re: NSXML

Re: NSOpenPanel problem

2012-01-22 Thread Ken Thomases
On Jan 22, 2012, at 1:24 PM, Jan E. Schotsman wrote: > Suppose I want to display a modeless choose file dialog with the > beginWithCompletionHandler method. > How can I pass some context info to the handler? Blocks capture whatever local variables you reference within them. If you reference in

NSOpenPanel problem

2012-01-22 Thread Jan E. Schotsman
Hello, Suppose I want to display a modeless choose file dialog with the beginWithCompletionHandler method. How can I pass some context info to the handler? The beginForDirectory method has a contextInfo parameter but I want to use the newer method. TIA, Jan E. ___

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

2012-01-22 Thread Greg Parker
On Jan 20, 2012, at 5:54 PM, G S wrote: > 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 ge

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

2012-01-22 Thread Ken Thomases
On Jan 20, 2012, at 7:33 AM, Jerry Krinock wrote: > 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

Re: NSXMLParser, streams, multiple threads, and crashing

2012-01-22 Thread Thomas Davie
On 22 Jan 2012, at 18:45, Jens Alfke wrote: > > On Jan 22, 2012, at 5:15 AM, Thomas Davie wrote: > >> As you can see, none of that is in my code (beyond main), so I have a real >> problem debugging what's going on here. > > Cocoa debugging tip: A crash in objc_msgsend almost always implies a

Re: NSXMLParser, streams, multiple threads, and crashing

2012-01-22 Thread Jens Alfke
On Jan 22, 2012, at 5:15 AM, Thomas Davie wrote: > As you can see, none of that is in my code (beyond main), so I have a real > problem debugging what's going on here. Cocoa debugging tip: A crash in objc_msgsend almost always implies a dangling reference to a deallocated object. Usually the

Re: NSSlider and arrangedObjects

2012-01-22 Thread Ken Thomases
On Jan 21, 2012, at 6:37 PM, Quincey Morris wrote: > On Jan 21, 2012, at 00:54 , Ken Thomases wrote: > >> Table columns do have special handling for array-valued bindings. It's that >> they distribute the array values among their rows. Table columns are not >> special in being able to bind t

Re: Versions, -windowWillClose:

2012-01-22 Thread Martin Hewitson
On 22, Jan, 2012, at 04:56 PM, Dave Fernandes wrote: > You can set a breakpoint in the normal document opening methods such as > -[NSDocument initWithContentsOfURL:ofType:error:] to see what URL the > versioned documents are being loaded from. Somebody else told me the documents are stored in

Re: Versions, -windowWillClose:

2012-01-22 Thread Dave Fernandes
You can set a breakpoint in the normal document opening methods such as -[NSDocument initWithContentsOfURL:ofType:error:] to see what URL the versioned documents are being loaded from. On 2012-01-22, at 10:06 AM, Martin Hewitson wrote: > > On 21, Jan, 2012, at 07:31 PM, Mike Abdullah wrote: >

Re: When in Versions browser

2012-01-22 Thread Martin Hewitson
On 21, Jan, 2012, at 02:43 PM, Mike Abdullah wrote: > > On 21 Jan 2012, at 09:33, Martin Hewitson wrote: > >> Dear list, >> >> I'm trying to get Versions and autosave working on my document app. Most >> things are working. I'm using the window delegate methods >> >> - (void)windowWillEnterVe

Re: Strange renaming of Documents folder

2012-01-22 Thread Martin Hewitson
On 22, Jan, 2012, at 01:09 AM, Ken Thomases wrote: > On Jan 21, 2012, at 7:32 AM, Martin Hewitson wrote: > >> I have a user that has been using a document based app of mine and they are >> reporting something very strange. >> >> The user is Spanish and so had a "Documentos" folder in his home

Re: Versions, -windowWillClose:

2012-01-22 Thread Martin Hewitson
On 21, Jan, 2012, at 07:31 PM, Mike Abdullah wrote: > > On 3 Jan 2012, at 15:25, Martin Hewitson wrote: > >> Dear list, >> >> I'm investigating getting the new 10.7 Versions stuff working on my >> NSPersistentDocument app. In doing that, I've seen a couple of strange >> things which I wanted

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

2012-01-22 Thread lpeng...@gmail.com
Re: auto malloc[27012]: attempted to remove unregistered weak referrer (Sean McBride) 2. Re: Strange renaming of Documents folder (Ken Thomases) 3. Re: Strange renaming of Documents folder (John Joyce) 4. Re: NSSlider and arrangedObjects (Quincey Morris) 5. Re: Strange renaming of Docu

Re: NSXMLParser, streams, multiple threads, and crashing

2012-01-22 Thread Thomas Davie
Thanks Andreas, I am indeed using ARC, so the code should be safe enough, as ARC will retain rec for me. Cheers for taking a look though Tom Davie if (*ra4 != 0xffc78948) { return false; } On 22 Jan 2012, at 13:35, Andreas Grosam wrote: > > On Jan 22, 2012, at 2:15 PM, Thomas Davie wrote: >>

Re: NSXMLParser, streams, multiple threads, and crashing

2012-01-22 Thread Andreas Grosam
On Jan 22, 2012, at 2:15 PM, Thomas Davie wrote: >OSPConnection *rec = [[self connectionQueue] objectAtIndex:0]; >[[self connectionQueue] removeObjectAtIndex:0]; >[[self currentConnections] addObject:rec]; Not sure if this is related to your issue, but basical

Re: Strange renaming of Documents folder

2012-01-22 Thread Martin Hewitson
On 22, Jan, 2012, at 01:17 AM, John Joyce wrote: > > On Jan 21, 2012, at 6:09 PM, Ken Thomases wrote: > >> On Jan 21, 2012, at 7:32 AM, Martin Hewitson wrote: >> >>> I have a user that has been using a document based app of mine and they are >>> reporting something very strange. >>> >>> The

NSXMLParser, streams, multiple threads, and crashing

2012-01-22 Thread Thomas Davie
Hi all, I'm having a bit of a bizarre issue with a pair of NSXMLParsers reading out of streams, where my main thread crashes while signalling a stream. Every crash occurs in the main thread, with this back trace: > #00x0175d0b0 in objc_msgSend () > #10x0133fb4d in _outputStreamCallbackFu

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

2012-01-22 Thread lpeng...@gmail.com
Re: Cocoa-dev Digest, Vol 9, Issue 33 (lpeng...@gmail.com) 8. Re: Cocoa-dev Digest, Vol 9, Issue 33 (lpeng...@gmail.com) 9. Re: Cocoa-dev Digest, Vol 9, Issue 34 (lpeng...@gmail.com) 10. Re: Cocoa-dev Digest, Vol 9, Issue 32 (lpeng...@gmail.com) Jim Lin 在 2012-1-22,2:31,cocoa-dev-requ...@li