Re: Create an image Browser.
Re: Create an image Browser.
- Subject: Re: Create an image Browser.
- From: James Chen <email@hidden>
- Date: Wed, 11 Feb 2004 09:43:07 +0800
Hi,
I agree with Ryan.
You could create an Image Browser rapidly if you go with NSMatrix.
But I think subclass of NSView or NSControl is the better choice since
some behaviors of NSMatrix don't suit for an Image Browser.
Such as the behaviors of selecting cell which trouble me a lot. (I do
use NSMatrix to implement my Image Browser and I try to write my own
now)
However, I suggest you could start with NSMatrix.
After you understand NSMatrix, it's time to create you NSView subclass.
(NSMatrix is a good subject to mimic)
Good Luck,
James
On Feb 10, 2004, at 11:53 PM, Ryan Bates wrote:
On Feb 10, 2004, at 5:34 AM, Roberto Sobachi wrote:
How can I create an Image Browser as iPhoto?
It uses NSTableView?
No, NSTableView would probably be a bad choice. I would go with
NSMatrix. It looks like iPhoto uses a custom subclass of NSView.
However, NSMatrix should suite your needs just fine. If it doesn't
have all of the functionality you need then I suggest subclassing it.
Also, please read Apple's documentation before posting on this list:
<http://developer.apple.com/documentation/Cocoa/Conceptual/Matrix/
index.html>
You may also want to consider buying a good Cocoa book. Although I
have not read it, Cocoa Programming for Mac OS X by Aaron Hillegass is
supposedly very good. Here's an Amazon link:
<http://www.amazon.com/exec/obidos/ASIN/0201726831/ref=pd_sim_books/
002-5082833-4388041>
Ryan
_______________________________________________
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.
_______________________________________________
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.