On 16 Jan 2013, at 11:39, Muthulingam Ammaiappan <muthulinga...@gmail.com> 
wrote:

> Hi friends,
> 
> i am developing cocoa application on mac os x, which will allows the user
> to import the video clips and make the movie from those video clips.here i
> need to deal with highly customized view....(please refer the attachment)...
> 
> *my requirement is:*
> 
> ->>moment user add the video clip it will be added to the container
> view(which contains all the inserted video clips) and represent as a
> thumbnail. ->>each and every thumbnail item should have the different width
> based on the duration of the video clip(for example : if i consider the
> container view width is 120 pixel and make equal to 2 mins(120 sec)... then
> if user add the video clip which duration is 10sec then thumbnail width
> should be 10 pixel).. for that i needed the thumbnail item(cell) size
> should be variable at runtime based on the incoming video clips duration...
> ->>slider playloc functionality to see the progress while user play the
> main movie..
> 
> *my approach:*
> 
> ->> i have created the NSView which is having IKImageBrowserView (thumnail
> container)and NSScrollView ->>and custom playloc button which is getting
> animated its position based on the progress value...
> 
> *problem: *
> 
> ->>rightnow i am not able to set the cell size for each and every item
> differently...because it is a member function of IKImageBrowserView...
> 
> if i call [imageBrowser setCellSize:];then it applies to all the cells...
> not for a particular cell...
> 
> can any one suggest how to fix this problem..?
> 
> and is it possible to set the variable cell size for each and every cells
> in IKImageBrowserView?
> 
> what about the NSCollectionView? whether it is possible to set the
> different size for each and every cell in NSCollectionView?..
> 
> can anyone please help me to fix this problem....
> 
> Thanks & Regards,

The IKImageBrowserView API probably does not offer the sort of functionality 
you are after.
NSScrollView can handle multiple views of various frame widths - insert the 
clip handling views a subviews.
However, IKImageBrowserCell certainly doesn't look as if it is designed for 
subclassing.

If you have to press on with IKImageBrowserView you could try creating 
individual instances for each clip (the view will host one item so you can set 
the cell width as you require) and embed those in an NSScrollView. There may be 
performance and/or presentation issues with this approach.

This sounds like the sort of project that needs a custom view - if you have the 
time or inclination.

Regards

Jonathan Mitchell
Mugginsoft LLP


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to