LightTable Sample CoreAnimation Code

2010-06-23 Thread Alexander Heinz
Hello all, I've been attempting to make sense of Apple's "LightTable" sample code for Core Animation, and I'm completely lost. Specifically, a couple of calls appear to be assigning an NSImage to the contents of a CALayer, which, as I previously understood, (and according to the documentation)

Re: Add button to Finder

2010-06-16 Thread Alexander Heinz
It sounds to me like this would be better suited to an item in the Services menu: http://developer.apple.com/mac/library/documentation/cocoa/conceptual/SysServices/introduction.html - Alex On Jun 16, 2010, at 9:03 PM, k...@highrolls.net wrote: > I have a SVN Client that adds a button to the Fi

Re: BOOL returned via -performSelctor: not BOOL on 64-bit system

2010-06-08 Thread Alexander Heinz
On Jun 8, 2010, at 1:37 PM, Jean-Daniel Dupas wrote: > > Le 8 juin 2010 à 19:23, James Bucanek a écrit : > >> Nick Zitzmann wrote (Tuesday, June 8, 2010 9:27 >> AM -0600): >> >>> On Jun 8, 2010, at 10:16 AM, James Bucanek wrote: >>> I've been trying to track d

Re: NSTextField: Change Text Color at Insertion Point?

2010-02-08 Thread Alexander Heinz
Oh. I knew that. In all seriousness, thanks a lot, that's exactly what I needed to know. - Alex On Feb 8, 2010, at 12:49 PM, Kyle Sluder wrote: > On Mon, Feb 8, 2010 at 9:36 AM, Alexander Heinz > wrote: >> Thanks for the pointer; I wouldn't have known to look for

Re: NSTextField: Change Text Color at Insertion Point?

2010-02-08 Thread Alexander Heinz
still stuck. On Feb 8, 2010, at 12:11 PM, Andreas Mayer wrote: > Am 08.02.2010 um 17:22 Uhr schrieb Alexander Heinz: > >> My question is this: let's say my user has already typed some text in black >> (or whatever color) and now wants to change the "active color&qu

NSTextField: Change Text Color at Insertion Point?

2010-02-08 Thread Alexander Heinz
Hello Cocoa-devs, I've a got an out-of-the box NSTextField that I'm trying to apply various string attributes to, including colors. I'm not using the standard color panel, since the application I'm writing can only support a very limited set of colors, so I just have a menu with a list of color

Re: Tutorial for writing a bindings-compliant NSView subclass?

2010-02-01 Thread Alexander Heinz
On Feb 1, 2010, at 11:38 AM, Matt Neuburg wrote: > On Mon, 1 Feb 2010 08:43:27 -0500, Alexander Heinz > said: >> Hello fellow Cocoa-devs, >> >> Does anyone know where to find a good tutorial or more information about > writing a bindings-compatible subclass of NSV

Tutorial for writing a bindings-compliant NSView subclass?

2010-02-01 Thread Alexander Heinz
Hello fellow Cocoa-devs, Does anyone know where to find a good tutorial or more information about writing a bindings-compatible subclass of NSView? I've seen Apple's example code on the subject, but it looks like it's a lot more complicated than it should be. I don't need Interface Builder supp

Re: Setting NSWindow titlebar height

2010-01-03 Thread Alexander Heinz
You could try calling NSWindow's setBorderThickness:forEdge: on NSMaxYEdge. Don't know if it will work, but that would be where I would start. HTH, Alex On Jan 3, 2010, at 11:41 AM, PCWiz wrote: I have a window that looks like this right now: http://img22.imageshack.us/img22/2953/screensho

[SOLVED] NSArrayController subclass computed property not being updated

2009-07-29 Thread Alexander Heinz
On Jul 29, 2009, at 11:24 AM, Jim Correia wrote: On Jul 29, 2009, at 1:09 AM, Alexander Heinz wrote: I've got an NSArrayController subclass with a computed property: @property (readonly) BOOL canRemoveSelection; (This basically adds some application-specific checks to the canR

Re: NSArrayController subclass computed property not being updated

2009-07-28 Thread Alexander Heinz
On Jul 28, 2009, at 10:40 PM, Kyle Sluder wrote: On Jul 28, 2009, at 10:09 PM, Alexander Heinz > wrote: (This basically adds some application-specific checks to the canRemove: property, so that I can bind a "remove" button in Interface Builder.) Question: why aren't y

Re: NSArrayController subclass computed property not being updated

2009-07-28 Thread Alexander Heinz
[super removeSelection:index]; } } On Jul 29, 2009, at 12:09 AM, Alexander Heinz wrote: Hello all, I've got an NSArrayController subclass with a computed property: @property (readonly) BOOL canRemoveSelection; (This basically adds some application-specific checks

NSArrayController subclass computed property not being updated

2009-07-28 Thread Alexander Heinz
Hello all, I've got an NSArrayController subclass with a computed property: @property (readonly) BOOL canRemoveSelection; (This basically adds some application-specific checks to the canRemove: property, so that I can bind a "remove" button in Interface Builder.) I want the property to be

Re: NSDictionary crash

2009-07-25 Thread Alexander Heinz
On Jul 25, 2009, at 11:20 AM, Kyle Sluder wrote: On Jul 25, 2009, at 11:00 AM, "slasktrattena...@gmail.com" > wrote: I find the third option the most likely: iTunes rewrites the data file frequently. Is there a way to lock the file while reading it, or detect if it is being modified, or suc

Re: NSColorPanel flat out lies

2009-05-26 Thread Alexander Heinz
I'm sorry, I misread; you're talking about NSColorPanel. You might try sending setContinous:NO to the color panel. Hope that helps, Alex Heinz On May 26, 2009, at 8:54 PM, Alexander Heinz wrote: NSColorWell is a subclass of NSControl. It should respond to setTarget:. Just use t

Re: NSColorPanel flat out lies

2009-05-26 Thread Alexander Heinz
NSColorWell is a subclass of NSControl. It should respond to setTarget:. Just use that. HTH, Alex Heinz On May 26, 2009, at 8:11 PM, Seth Willits wrote: I have a color well, which I am clicking on, and whenever I change the color in the color panel, the color panel sends a changeColor:

Re: Integer as key in NSMutableDictionary

2009-05-04 Thread Alexander Heinz
On May 4, 2009, at 3:22 AM, Weydson Lima wrote: I know that these methods are expecting pointers as parameters and I am passing a scalar. So, what's the best way to approach that? That's correct. You really shouldn't put any scalar types in an NSDictionary (or any other container type in the

Re: NSMutableDictionary drives me mad.

2009-03-10 Thread Alexander Heinz
Have you tried using NSNumber instead of your custom integer wrapper? I doubt this is the problem, but see what happens if you do. HTH, Alex On Mar 10, 2009, at 2:33 PM, Тимофей Даньшин wrote: Hello. I am writing a method for searching for the longest common substring. The idea is to store

[SOLVED] Zombies: "Not a Type release"

2009-01-22 Thread Alexander Heinz
On Jan 22, 2009, at 2:51 PM, David Duncan wrote: On Jan 22, 2009, at 2:40 PM, Alexander Heinz wrote: Now, to figure out why I'm sending a - release to a CGImage... If you'd set the contents property of a CALayer to a CGImage at any point? Since you set the view's layer t

Re: Zombies: "Not a Type release"

2009-01-22 Thread Alexander Heinz
On Jan 22, 2009, at 2:34 PM, Corbin Dunn wrote: On Jan 22, 2009, at 2:29 PM, Alexander Heinz wrote: Thanks for the quick reply. You're right, I read that wrong, but, unfortunately, I can't "po" the object in gdb (just gives me a similar log message) and Instru

Re: Zombies: "Not a Type release"

2009-01-22 Thread Alexander Heinz
On Jan 22, 2009, at 2:36 PM, Sean McBride wrote: On 1/22/09 2:29 PM, Alexander Heinz said: You're right, I read that wrong, but, unfortunately, I can't "po" the object in gdb (just gives me a similar log message) Figures. and Instruments doesn't have a re

Re: Zombies: "Not a Type release"

2009-01-22 Thread Alexander Heinz
2009, at 2:15 PM, Sean McBride wrote: On 1/22/09 2:11 PM, Alexander Heinz said: *** -[Not A Type release]: message sent to deallocated instance 0xe412b30 This doesn't tell me what kind of object is sent the message, so I'm having a very hard time debugging the problem. My questions

Zombies: "Not a Type release"

2009-01-22 Thread Alexander Heinz
Hello all, I'm trying to debug what I think is a memory-management problem in my Core Animation-based custom view. I'm getting EXEC_BAD_ACCESS at some point after I release a bunch of ivars and set the view's "layer" property to nil, so I've turned on NSZombieEnabled in the environment to