Changes in KVO behavior on SL?

2009-09-01 Thread Kevin Brock
We've got an app that is using keyValueForPath: and observeValueForKeyPath:ofObject:change:context: to keep a status window up-to-date. On 10.5 it works fine. On 10.6 keyValueForPath: is called exactly once per property. When we later create a change dictionary and send observeValueForKeyPa

Re: Changes in KVO behavior on SL?

2009-09-02 Thread Kevin Brock
On Sep 1, 2009, at 6:11 PM, Ken Thomases wrote: On Sep 1, 2009, at 7:14 PM, Kevin Brock wrote: We've got an app that is using keyValueForPath: and observeValueForKeyPath:ofObject:change:context: to keep a status window up-to-date. On 10.5 it works fine. On 10.6 keyValueForPat

Dialog boxes with dynamic contents

2009-11-09 Thread Kevin Brock
I'm looking for some pointers to information on creating dialog boxes with content (# and type of controls) determined at runtime. All that I really know ahead of time is that there will be a dialog box to gather some data, and that the UI objects in the dialog come from a small, well defined

Re: Dialog boxes with dynamic contents

2009-11-09 Thread Kevin Brock
Kyle Sluder wrote: On Mon, Nov 9, 2009 at 9:10 AM, Kevin Brock wrote: I'm pretty sure that I could just do it programmatically, creating and laying things out on the fly, but I'm hoping there's a simpler way. Most of the application is standard windows in a nib file.

setStringValue problems with dynamically loaded views.

2010-03-17 Thread Kevin Brock
I have some framework code which dynamically loads some views from it's bundle, based on parameters that are known at runtime. Calls to setStringValue appear to be having no effect for any of my NSTextFields, either labels or editable. Here's code that loads a custom view containing a text fiel

Re: setStringValue problems with dynamically loaded views.

2010-03-17 Thread Kevin Brock
On Mar 17, 2010, at 2:42 PM, Kyle Sluder wrote: > -initWithNibName:bundle: doesn't actually load the nib, so at this > point textField hasn't been hooked up to anything yet. If you set a > breakpoint on this line you'll find that textField == nil. You will > need to move this logic elsewhere. > >

Layout timing (was Re: setStringValue problems with dynamically loaded views.)

2010-03-24 Thread Kevin Brock
On Mar 17, 2010, at 3:20 PM, Kevin Brock wrote: > On Mar 17, 2010, at 2:42 PM, Kyle Sluder wrote: >> which is designed for just this kind of scenario. NSViewController >> doesn't have an analog for -windowDidLoad; instead you are expected to >> override -loadView, call s

Re: Moving from nib to code with custom controller.

2010-03-31 Thread Kevin Brock
On Mar 31, 2010, at 8:01 AM, James Cicenia wrote: > Hello - > > I have always used IB before. I added my controller and linked it all up and > it worked great. > > Now, I have to move this instead to code. I am confused on how to do this. > > 1) I have a custom view controller. (FeaturedViewCo

Re: ObjC question

2010-04-10 Thread Kevin Brock
On Apr 10, 2010, at 2:38 PM, Tony Romano wrote: > Using the sample below, how do I get the instance of the class in which I am > contained WITHOUT passing it as a parameter or using hacky sizeof tricks in > the method Foo:method? Thanks people! If this is not the correct alias for > this typ

Long term performance of NSConnection

2009-07-03 Thread Kevin Brock
Time lookUpConnectionForProxy58% lookUpWireIDForProxy28.9% lookUpOrCreateLocalProxyForObject 11.2% I'd really appreciate any suggestions about why this might be happening. Kevin Brock ap...@kevin.com ___ Cocoa-dev mailing list (Coc

Re: Long term performance of NSConnection

2009-07-06 Thread Kevin Brock
code, and the initialization routines are only called once. In the event of closing and re-opening the connection each time I'd expect to see a constant performance hit, not one that increased over time. Kevin Aurélien, Objective Decision Team On 2 juil. 09, at 21:29, Kevin Brock

NSConnection recursion -- (was Re: Long term performance of NSConnection)

2009-07-07 Thread Kevin Brock
Kirk Kerekes wrote: Use Activity Monitor (or other tool of your choice) to check for a port leak. It wasn't that... Turns out that the protocol on the connection had a call which took an Objective C object as a parameter. The parameter wasn't declared as /byref/ or /bycopy/, so I believe it

Re: NSConnection Proxy Crash

2009-07-10 Thread Kevin Brock
Mr. Gecko wrote: [MGMDaemon setProtocolForProxy:@protocol(MGMDaemonProtocol)]; [MGMDaemon runTest:@"Test"]; The basic code looks OK. I've got code a lot like that which is working fine... What's the declaration of the protocol methods that you're calling? The low bytes of this: Exception C

Re: NSConnection Proxy Crash

2009-07-10 Thread Kevin Brock
Kevin Brock wrote: The low bytes of this: Exception Codes: KERN_INVALID_ADDRESS at 0xc023 look suspiciously like a Windows error code, 0xc23, STATUS_BUFFER_TOO_SMALL... I meant 0xc023 of course. Kevin ___ Cocoa-dev mailing

Re: NSConnection Proxy Crash

2009-07-10 Thread Kevin Brock
Greg Parker wrote: On Jul 10, 2009, at 12:18 PM, Kevin Brock wrote: look suspiciously like a Windows error code, 0xc23, STATUS_BUFFER_TOO_SMALL... Is there anywhere that you're getting back that type of error code on the other end of this? No, it looks like a malloc free list po

Re: Repository of older (outdated) PDF Guides?

2017-05-19 Thread Kevin Brock
I’ve got a collection here: https://www.dropbox.com/sh/dlhxh9birw1lhp9/AABA3_yvSRwjOBA84LxD3RzIa?dl=0 Ranging from 2010-2014. Kevin > On May 11, 2017, at 00:32, Nimesh Neema wrote: > > I have a few lying around here: > > https://www.dropbox.com/sh/h0h56lj0dky27m9/AADbwmnbhu8I6DRVld