• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How to Implement Film Rolls Functionality Like iPhoto
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to Implement Film Rolls Functionality Like iPhoto


  • Subject: Re: How to Implement Film Rolls Functionality Like iPhoto
  • From: Keith Wilson <email@hidden>
  • Date: Sat, 24 Jun 2006 14:28:09 +1000

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:
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: This email sent to email@hidden
References: 
 >How to Implement Film Rolls Functionality Like iPhoto (From: Suman <email@hidden>)

  • Prev by Date: How to Implement Film Rolls Functionality Like iPhoto
  • Next by Date: Re: Help with NSArrayController, NSTableView and NSOpenPanel
  • Previous by thread: How to Implement Film Rolls Functionality Like iPhoto
  • Next by thread: NSAttributedString in NSTextFieldCell (NSTableView)
  • Index(es):
    • Date
    • Thread