KVC Validation w/ custom Formatter not working

2017-02-26 Thread Luc Van Bogaert
Hello,

In Swift, I'm using a custom Formatter subclass on a NSTextField (in a table) 
in IB. The textfield value binding is bound to a property of my model class. 
This property is a typealiased Int. I would also like to use KVC validation for 
this property, so my model class overrides 

validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer, forKey 
inKey: String) throws

After changing the text in the textfield, my validation method is not called. 
When I replace my custom formatter with an instance of NSNumberFormatter, 
everything works as expected.

Any help with this would be greatly appreciated.

-- 
Luc Van Bogaert
___

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.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Memory-mapped sub-data?

2017-02-26 Thread Daryle Walker
If I take a "subdata" of a memory-mapped (NS)Data, does it stay mapped (i.e. 
use a range and reference)? Or does a full copy get made? I'm thinking of 
making a parser be a sub-parser too, and this would make the difference between 
scanning the next megabyte or the rest-of-file (even if it's gigabytes).

Sent from my iPhone
___

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.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Need replacement of Component Manager::OpenDefaultComponent

2017-02-26 Thread Shane Stanley
On 26 Feb 2017, at 1:35 pm, dangerwillrobinsondan...@gmail.com wrote:
> 
> Yeah but even with OSAKit, to implement a language you need to link to Carbon 
> and use deprecated Carbon calls. 

I think you'll find that most (if not all) the calls you need to use are no 
longer marked as deprecated.

-- 
Shane Stanley 
, 



___

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.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com