Re: How to add the cells(views) in a columnwise instead of Rowwise in PXListView?
Re: How to add the cells(views) in a columnwise instead of Rowwise in PXListView?
- Subject: Re: How to add the cells(views) in a columnwise instead of Rowwise in PXListView?
- From: Muthulingam Ammaiappan <email@hidden>
- Date: Mon, 21 Jan 2013 17:41:28 +0800
i am modifying the "PXListView" as per my requirement...(please refer the
"ThumbnailListView.png")
the main problem is PXListView having one column and cells are added in a
new row. but what i needed is "i need a One Row and cells should be added
in the columns).
can anyone please help me how i can able to solve this problem...?
please point out in which function i need to modify?
-Muthu
On Mon, Jan 21, 2013 at 5:35 PM, Muthulingam Ammaiappan <
email@hidden> wrote:
> Hi All,
>
> i am modifying the "PXListView" as per my requirement...(please refer the
> "ThumbnailListView.png")
>
> the main problem is PXListView having one column and cells are added in a
> new row...
> but what i needed is "i need a One Row and cells should be added in the
> columns).....
>
> can anyone please help me how i can able to solve this problem...?
>
> please point out in which function i need to modify?
>
> Regards,
> Muthu
>
>
>
> On Mon, Jan 21, 2013 at 9:56 AM, Muthulingam Ammaiappan <
> email@hidden> wrote:
>
>> Hi Jonathan ,
>>
>> thanks for your reply...after investigating the IKImageBrowserView wont
>> offer the variable cell sizes...
>>
>>
>> *my requirements are following:*
>>
>> 1.i need a List View which will allows the user to add the Thumbnail
>> Image of the video clip with variable cell size(width will be varied based
>> on the duration of the video clip)
>> 2.remove the thumbnail cell
>> 3.select the thumbnail cell(selection will be highlighted)
>> 4.reorder the items(Thumbnail Cells) in the ListView
>>
>>
>>
>> i found some of the open source projects(similar to NSCollectionView)
>> which are providing the variable cell size(variable height).....but i need
>> the variable width size..here are the following
>>
>> for example :
>> 1.PXListView (https://github.com/Perspx/PXListView)
>> 2.SDListView (https://github.com/arbales/SDListView)
>> 3.AMCollectionView(http://www.harmless.de/cocoa-code.php)....
>>
>> can any one suggest which one is the best suitable for my requirement?
>> if none of those are not suitable for me... can anyone suggest the the
>> best open source library which will fulfill my requirement?
>>
>> Thanks & Regards,
>> Muthu
>>
>>
>>
>> On Wed, Jan 16, 2013 at 8:03 PM, email@hidden <
>> email@hidden> wrote:
>>
>>>
>>> On 16 Jan 2013, at 11:39, Muthulingam Ammaiappan <
>>> email@hidden> 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 (email@hidden)
>>>
>>> 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:
>>>
>>>
>>> This email sent to email@hidden
>>>
>>
>>
>
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden