Colored checkboxes like in iCal

2010-04-15 Thread Andreas Eriksson
Is there a way to get colored checkboxes like in iCal without using custom drawing? I have looked through the documentation but can only find how to change the background and text color. / Andreas ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Keeping closed windows in the Window menu

2010-01-18 Thread Andreas Eriksson
Hi, What's the recommended way of keeping a window in the Window menu (like e.g. Address book and iChat does) so that it can be brought back even after it has been closed? / Andreas ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not

Re: Keeping closed windows in the Window menu

2010-01-18 Thread Andreas Eriksson
On Mon, Jan 18, 2010 at 10:04 PM, Quincey Morris wrote: > On Jan 18, 2010, at 11:23, Andreas Eriksson wrote: > >> What's the recommended way of keeping a window in the Window menu >> (like e.g. Address book and iChat does) so that it can be brought back >>

Implementing key view loop in custom NSView

2009-08-10 Thread Andreas Eriksson
I am wondering whats the best approach to handle the key view loop in a custom NSView that consists of several sub-views that the user can tab between? Lets say I have three views A, B, and C, all chained up in that order in the key view loop. if B is my custom view consisting of subviews B.x and

Re: Implementing key view loop in custom NSView

2009-08-10 Thread Andreas Eriksson
Thanks a lot for helping out! That would work, but I would prefer if I didn't have to expose the subviews. Especially, since those are not available when I use the custom view in IB. I tried overriding becomeFirstResponder like - (BOOL)becomeFirstResponder { [[self window] makeFirstResponder:f

Re: Implementing key view loop in custom NSView

2009-08-10 Thread Andreas Eriksson
On Mon, Aug 10, 2009 at 4:05 PM, Andy Lee wrote: > On Aug 10, 2009, at 5:43 AM, Andreas Eriksson wrote: > >> I am wondering whats the best approach to handle the key view loop in a >> custom NSView that consists of several sub-views that the user can tab >> between? &g

Trackpad multi touch events in Mac OSX

2008-12-20 Thread Andreas Eriksson
Hi, is there a public API to catch the new trackpad multi touch events in Mac OSX? Regards, Andreas ___ 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 c

Possible to change value transformer for binding at runtime?

2009-02-10 Thread Andreas Eriksson
Hi, is there a way to change the value transformer used for a binding at runtime? / Andreas ___ 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-

Best way to implement a "dynamic" panel

2008-10-04 Thread Andreas Eriksson
Hi, I'm wondering what's the best way to implement a panel with a very dynamic layout, similar to the iCal panel used to edit events? I need the panel to resize, and other controls to move as other controls are inserted, removed, or resized. In Qt, I guess I would use the layout classes to do thi

File's owner as target of button-action

2008-10-07 Thread Andreas Eriksson
I have a nib-file with the File's Owner class set to my own subclass of NSViewController. The nib-file also contains a custom view with a button whose target and action is set to a method in File's Owner. The trouble is that I get EXC_BAD_ACCESS when I click the button and it tries to call my acti

Re: File's owner as target of button-action

2008-10-07 Thread Andreas Eriksson
>> I guess I have misunderstood something here. Is there something special >> about >> File's Owner that prevents this from working? > > There's not enough information here to answer your question. You should > post: > > 1 - How you instantiate your custom NSViewController class and load the nib.

Determining use of serial comma

2008-11-23 Thread Andreas Eriksson
Hi, is there a way to find out if a serial comma should be used or not ("foo, bar, and baz" or "foo, bar and baz"?) according to the users current settings? I've locked around in the NSLocale class but couldn't find anything. Regards Andreas ___ Coco

How to test if object is KVO observer?

2009-04-15 Thread Andreas Eriksson
Is there a way to test if an object is a KVO observer of a different object? Something like -[a isObserving:b forKeyPath:@"akeypath"]? / Andreas ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator commen

Re: How to test if object is KVO observer?

2009-04-15 Thread Andreas Eriksson
On Wed, Apr 15, 2009 at 10:09 PM, I. Savant wrote: > On Wed, Apr 15, 2009 at 3:51 PM, Andreas Eriksson > wrote: > > Is there a way to test if an object is a KVO observer of a different > object? > > Something like -[a isObserving:b forKeyPath:@"akeypath"]?