Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to Implement Film Rolls Functionality Like iPhoto



I did something similar using a custom view. It's not hard - just got to write some code.

As I draw each picture I save its rect in an array of rectangles. When the user clicks on my custom view, from mouseDown I invoke a method that I called getClickedPicture:(NSEvent)theEvent . I then spin through the array of rects using NSPointInRect() to find which picture was selected.

As for the arrow heads that make it look like an outlineView - I use an NSButton and define a Title that starts with the rightArrowHead symbol plus an Alt.Title that starts with a downArrowHeadSymbol.


On 24/06/2006, at 1:45 PM, Suman wrote:

Hi All,

i want to implement film rolls functionality like iPhoto in my app. I have few doubts in my mind regarding this implementation.

       a) is this is a custom view on which drawing takes place
       		(or)
       b) is this is an outlineview
      		(or)
      c)  is this is a browser

Any pointers on this will be appreciable.


Thanks, Suman



_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/kswilson% 40bigpond.net.au


This email sent to email@hidden

_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden
References: 
 >How to Implement Film Rolls Functionality Like iPhoto (From: Suman <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.