Re: Creating NSXMLDocument programmatically

2016-03-22 Thread John Brownie
___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: https://lists.apple.co

Re: Creating NSXMLDocument programmatically

2016-03-22 Thread Quincey Morris
On Mar 22, 2016, at 19:46 , John Brownie wrote: > > setDTD: became unavailable in 10.10, but there appears to be no replacement A number of redundant “freestanding” getter/setter method declarations were removed from the SDK, but the DTD property remains. You should be able to set it that way.

Creating NSXMLDocument programmatically

2016-03-22 Thread John Brownie
I'm building an XML tree from an XML file which is XML 1.1, so has character references that NSXMLDocument cannot handle natively. So, I'm working with a modified version of the Expat parser and building the tree as I go. The problem: How do I associate a DTD with the document? setDTD: became

IKImageBrowserView bug?

2016-03-22 Thread Graham Cox
Hi all, I just upgraded to 10.11.4 and XCode 7.3 and therefore the latest SDK. Rebuilding my app, my one instance of IKImageBrowserVIew in my app has gone haywire. Whenever I load new images into it, it scrolls constantly to the bottom of the view. If I manually scroll it elsewhere, it scrolls

Re: Multiple AVAudioPlayer - locking main thread?

2016-03-22 Thread Seth Willits
> On Mar 18, 2016, at 1:10 PM, Eric E. Dolecki wrote: > > I have audio buttons, each with it's own associated AVAudioPlayer > > Any ideas about the main thread lockup? Rather than just looking at memory usage, look at what's actually taking up the time on the main thread. Use a time profi

Re: NSOutlineView woes

2016-03-22 Thread Graham Cox
> On 21 Mar 2016, at 5:02 PM, Quincey Morris > wrote: > > On Mar 20, 2016, at 20:20 , Graham Cox wrote: >> >> This is driving me insane! > > a. Can you produce a test project that demonstrates the behavior? (Preferably > not via drag-and-drop, since that’s so much harder to debug.) > > b.

Re: UIDocument with NSFileWrapper

2016-03-22 Thread davelist
I don't claim this is the one right way, but I think it makes sense based on the little bit of documentation there is for NSFIleWrapper and it seems to work. My situation is complicated because my document consists of multiple files. UIDocument is pretty simple if you only need a single data fi

Re: NSThread to NSOperation and blockUntil

2016-03-22 Thread Graham Cox
> On 22 Mar 2016, at 5:33 PM, Trygve Inda wrote: > > So I need to be able to have a process done in 30 seconds for example At > full speed it could be done in 4 seconds but I'd like it done with as little > impact as possible. So just let it run as fast as possible. The whole point of thre

Re: #selector noob question

2016-03-22 Thread Quincey Morris
On Mar 22, 2016, at 07:21 , Eric E. Dolecki wrote: > > myButton.addTarget(self, action: #selector(AudioElement.selected(_:)), > forControlEvents: .TouchUpInside) > I get it now that I can see what's going on with better context. I can also > just replace AudioElement with self. It’s slightly b

Re: NSThread to NSOperation and blockUntil

2016-03-22 Thread Jens Alfke
> On Mar 22, 2016, at 2:33 AM, Trygve Inda wrote: > > So I need to be able to have a process done in 30 seconds for example At > full speed it could be done in 4 seconds but I'd like it done with as little > impact as possible. I don’t think it makes much difference to other system threads

Re: #selector noob question

2016-03-22 Thread Eric E. Dolecki
Okay - Xcode just finished installing and I got to see my code in situ with fixable warnings. myButton.addTarget(self, action: "selected:", forControlEvents: .TouchUpInside) //above shows fixable warning. Changes to this: myButton.addTarget(self, action: #selector(AudioElement.selected(_:)), for

Re: #selector noob question

2016-03-22 Thread Eric E. Dolecki
Thanks for the answer. I am going to read it a few times. Back to the original question - if an object has an addTarget, will calling the non-string method name supply the object itself to the method? On Tue, Mar 22, 2016 at 9:28 AM Luther Baker wrote: > Thanks for posting this extended answer!

Re: #selector noob question

2016-03-22 Thread Luther Baker
Thanks for posting this extended answer! On Mon, Mar 21, 2016 at 11:34 PM Quincey Morris < quinceymor...@rivergatesoftware.com> wrote: > On Mar 21, 2016, at 20:27 , Eric E. Dolecki wrote: > > > > Quick question. If I use #selector(funcName) - does it always send an > > argument of the obj if the