NSMatrix selections
NSMatrix selections
- Subject: NSMatrix selections
- From: Dave Riggle <email@hidden>
- Date: Sat, 16 Aug 2003 11:12:47 -0700
I'm a complete Cocoa newbie. I'm building an iPhoto like app. From
reading the archives, it sounds like other people have been doing the
same thing.
I have my own subclass of NSImageCell inside an NSMatrix inside an
NSScrollView inside an NSWindow. I have a controller object that is a
delegate for the window, and it "renews" the matrix when the window
size changes. That part is working nicely. In Interface Builder I
instantiated my controller, linked the window delegate, scroll view and
matrix to to my controller. I also set a few options for my cells and
matrix. That's all I did in IB.
My problem is: I can't get selection to work. I'm using the
NSImageFrameGrayBezel frame style with List selection mode. The matrix
always has the first cell selected when I load it. If I click cells
that are partially shown, the matrix scrolls up to show them, so I know
clicks are getting through, but the cells don't get selected. If I hit
the page down key, a random cell gets selected and then the matrix
scrolls down a page. What's going on?
Any tips or code snippets from other people building apps like mine
would be greatly appreciated!
Dave
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.