NSTableHeaderCell

I’ve been teaching myself Cocoa lately and was wrestling with this class for a while — it didn’t seem to draw itself correctly when I hosted it myself (I’m building my own layout, but I wanted its header to be themed correctly). Here’s the most important part of the solution:

- (BOOL) isFlipped
{
    return YES;
}

{: lang=objc }

Even once I found references to flipped coordinates on mamasam, I’d forgotten about an intervening view between the NSTableHeaderCell and where I flipped, so naturally it didn’t work. Once you flip the right view’s coordinates, the cell starts behaving predictably — there’s nothing special in my -[HeaderView drawRect:].

This entry was posted in Uncategorized and tagged , . Bookmark the permalink.

One Response to NSTableHeaderCell

  1. sjbiars1 says:

    Hey I was wondering if you could forward me to the current owner of zzot! / subgeek.com. I used to own the domain subgeek.com (as verifiable at archive.org) hadnt realized it expired while I was deployed in the Army. I was wondering since its not in use if it would be possible for me to reacquire the domain. -Shad Biars (sjbiars@gmail.com)