Re: UICollectionView Moving

2016-03-07 Thread Luther Baker
Now we're cooking with GAS!!!

override func applyLayoutAttributes(layoutAttributes:
UICollectionViewLayoutAttributes) {
print("apply layout attributes!: \(titleLabel.text)")
}

Thanks Man!
-Luther



On Mon, Mar 7, 2016 at 11:54 PM, Luke Hiesterman  wrote:

> By teaching a cell to respond to an attribute I merely meant that it
> should override setLayoutAttributes: and do something in there with the
> relevant property. Hope that helps.
>
> Luke
>
> On Mar 7, 2016, at 9:39 PM, Luther Baker  wrote:
>
> > teach your cell classes to respond to that property
>
> Want to think about this out loud. Wondering what would 'trigger' a lookup
> on the layout's layoutAttributesForItemAtIndexPath ... and where would I
> store the indexPath I am dragging around.
>
> If I were to be more literal - in my view controller, I handle the
> UIGestureRecognizerState.Began event. At this point, I can get the
> indexPath of the element I am about to move and if I change something on
> that cell at that time, it sticks for the life of the drag without
> reference to layoutAttributes. I also handle the
> UIGestureRecognizerState.Changed event and again, if I retrieve the cell at
> the gesture's locationInView and change things in it ... those changes
> stick until I let go of the drag.
>
> Stepping into the custom layout for a minute ... as you suggested, I am
> now implementing layoutAttributesForInteractivelyMovingItemAtIndexPath ...
> and that is getting invoked in response to the
> updateInteractiveMovementTargetPosition call I am making as the gesture
> location changes. Now, I know the collection view's methods are triggering
> the layout's callbacks - but I'm not sure what would trigger me to fetch
> the custom attributes you are suggesting. At a minimum, to ask the layout
> for the attributes at that indexPath, I'd have to actually be tracking the
> 'selectedIndexPath' in which case, I could just get the cell and modify it
> directly.
>
> I guess I'm wondering how to "teach my cells classes to respond to that
> property" ... Cells are reused so I'm not even sure how I'd go about
> setting up and tearing down a KVO type relationship for the specific cell I
> am dragging around. Maybe there is a WWDC video that digs into this? or
> it's an easy explain?
>
> Sorry for being so long-winded. I'm not sure I'm communicating my question
> well. Hope you can understand my underlying question and nudge me the right
> way but at any rate, thanks for your help so far. I'd love to use an
> elegant, "made for CollectionView" solution ... but I don't think I'm
> looking at it correctly yet. Just in general I guess, how can a change to
> the layoutAttributes cause my CollectionViewDelegate and DataSources to
> fetch the cell I'm dragging around and change it (or does it not require
> the delegates or datasources ... ?)
>
> Thanks,
> -Luther
>
>
>
> On Mon, Mar 7, 2016 at 2:45 PM, Luke Hiesterman 
> wrote:
>
>> You can create your own subclass of UICollectionViewLayoutAttributes and
>> add something like an “isMoving” property to that. Then teach your cell
>> classes to respond to that property by changing the background color.
>>
>> Luke
>>
>> On Mar 7, 2016, at 11:44 AM, Luther Baker  wrote:
>>
>> Thanks Luke! That was it - I can drag and drop successfully now.
>>
>> One more question, how do I modify a property of the item I'm dragging
>> around if the property is NOT currently in UICollectionViewLayoutAttributes
>> ... I don't see a call to the datasource or delegate when I select the cell
>> for moving ... so I'm not sure how to change the background color to "red"
>> for instance.
>>
>> Would I have to add my own view to the superview and manually move it
>> around in the dragging callbacks?
>>
>> Thanks!
>> -Luther
>>
>>
>> On Mon, Mar 7, 2016 at 11:59 AM, Luke Hiesterman 
>> wrote:
>>
>>> I’d check your return value for this method in your layout:
>>>
>>> - (UICollectionViewLayoutAttributes
>>> *)layoutAttributesForInteractivelyMovingItemAtIndexPath:(NSIndexPath
>>> *)indexPath withTargetPosition:(CGPoint)position NS_AVAILABLE_IOS(9_0);
>>>
>>> Luke
>>>
>>> On Mar 7, 2016, at 9:55 AM, Luther Baker  wrote:
>>>
>>> I followed the directions here,
>>>
>>> http://nshint.io/blog/2015/07/16/uicollectionviews-now-have-easy-reordering/
>>> - to add iOS9 style dragging to my UICollectionView - and it sort of
>>> works.
>>>
>>> As described in the article, I added a long press gesture recognizer and
>>> wired it in to make calls on the collection view -- but now, if I long
>>> press, the element under my finger disappears. As I drag the transparent
>>> image around, the other elements shift - but I can never see the element
>>> I
>>> am dragging around. When I let go, there is simply a hole left where I
>>> "dropped" the element.
>>>
>>> I do, very much, have a custom layout and I'm not sure that if, 

Re: UICollectionView Moving

2016-03-07 Thread Luke Hiesterman
By teaching a cell to respond to an attribute I merely meant that it should 
override setLayoutAttributes: and do something in there with the relevant 
property. Hope that helps.

Luke

On Mar 7, 2016, at 9:39 PM, Luther Baker 
> wrote:

> teach your cell classes to respond to that property

Want to think about this out loud. Wondering what would 'trigger' a lookup on 
the layout's layoutAttributesForItemAtIndexPath ... and where would I store the 
indexPath I am dragging around.

If I were to be more literal - in my view controller, I handle the 
UIGestureRecognizerState.Began event. At this point, I can get the indexPath of 
the element I am about to move and if I change something on that cell at that 
time, it sticks for the life of the drag without reference to layoutAttributes. 
I also handle the UIGestureRecognizerState.Changed event and again, if I 
retrieve the cell at the gesture's locationInView and change things in it ... 
those changes stick until I let go of the drag.

Stepping into the custom layout for a minute ... as you suggested, I am now 
implementing layoutAttributesForInteractivelyMovingItemAtIndexPath ... and that 
is getting invoked in response to the updateInteractiveMovementTargetPosition 
call I am making as the gesture location changes. Now, I know the collection 
view's methods are triggering the layout's callbacks - but I'm not sure what 
would trigger me to fetch the custom attributes you are suggesting. At a 
minimum, to ask the layout for the attributes at that indexPath, I'd have to 
actually be tracking the 'selectedIndexPath' in which case, I could just get 
the cell and modify it directly.

I guess I'm wondering how to "teach my cells classes to respond to that 
property" ... Cells are reused so I'm not even sure how I'd go about setting up 
and tearing down a KVO type relationship for the specific cell I am dragging 
around. Maybe there is a WWDC video that digs into this? or it's an easy 
explain?

Sorry for being so long-winded. I'm not sure I'm communicating my question 
well. Hope you can understand my underlying question and nudge me the right way 
but at any rate, thanks for your help so far. I'd love to use an elegant, "made 
for CollectionView" solution ... but I don't think I'm looking at it correctly 
yet. Just in general I guess, how can a change to the layoutAttributes cause my 
CollectionViewDelegate and DataSources to fetch the cell I'm dragging around 
and change it (or does it not require the delegates or datasources ... ?)

Thanks,
-Luther



On Mon, Mar 7, 2016 at 2:45 PM, Luke Hiesterman 
> wrote:
You can create your own subclass of UICollectionViewLayoutAttributes and add 
something like an “isMoving” property to that. Then teach your cell classes to 
respond to that property by changing the background color.

Luke

On Mar 7, 2016, at 11:44 AM, Luther Baker 
> wrote:

Thanks Luke! That was it - I can drag and drop successfully now.

One more question, how do I modify a property of the item I'm dragging around 
if the property is NOT currently in UICollectionViewLayoutAttributes ... I 
don't see a call to the datasource or delegate when I select the cell for 
moving ... so I'm not sure how to change the background color to "red" for 
instance.

Would I have to add my own view to the superview and manually move it around in 
the dragging callbacks?

Thanks!
-Luther


On Mon, Mar 7, 2016 at 11:59 AM, Luke Hiesterman 
> wrote:
I’d check your return value for this method in your layout:

- (UICollectionViewLayoutAttributes 
*)layoutAttributesForInteractivelyMovingItemAtIndexPath:(NSIndexPath 
*)indexPath withTargetPosition:(CGPoint)position NS_AVAILABLE_IOS(9_0);

Luke

On Mar 7, 2016, at 9:55 AM, Luther Baker 
> wrote:

I followed the directions here,
http://nshint.io/blog/2015/07/16/uicollectionviews-now-have-easy-reordering/
- to add iOS9 style dragging to my UICollectionView - and it sort of works.

As described in the article, I added a long press gesture recognizer and
wired it in to make calls on the collection view -- but now, if I long
press, the element under my finger disappears. As I drag the transparent
image around, the other elements shift - but I can never see the element I
am dragging around. When I let go, there is simply a hole left where I
"dropped" the element.

I do, very much, have a custom layout and I'm not sure that if, for drag, I
need to do anything special. Do I need to calculate the frame of the item I
am dragging around? I'm not sure what to try next except to roll my own
dragging. Any thoughts or things to try?

Thanks in advance.
___

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

Please do not 

Re: UICollectionView Moving

2016-03-07 Thread Luther Baker
> teach your cell classes to respond to that property

Want to think about this out loud. Wondering what would 'trigger' a lookup
on the layout's layoutAttributesForItemAtIndexPath ... and where would I
store the indexPath I am dragging around.

If I were to be more literal - in my view controller, I handle the
UIGestureRecognizerState.Began event. At this point, I can get the
indexPath of the element I am about to move and if I change something on
that cell at that time, it sticks for the life of the drag without
reference to layoutAttributes. I also handle the
UIGestureRecognizerState.Changed event and again, if I retrieve the cell at
the gesture's locationInView and change things in it ... those changes
stick until I let go of the drag.

Stepping into the custom layout for a minute ... as you suggested, I am now
implementing layoutAttributesForInteractivelyMovingItemAtIndexPath ... and
that is getting invoked in response to the
updateInteractiveMovementTargetPosition call I am making as the gesture
location changes. Now, I know the collection view's methods are triggering
the layout's callbacks - but I'm not sure what would trigger me to fetch
the custom attributes you are suggesting. At a minimum, to ask the layout
for the attributes at that indexPath, I'd have to actually be tracking the
'selectedIndexPath' in which case, I could just get the cell and modify it
directly.

I guess I'm wondering how to "teach my cells classes to respond to that
property" ... Cells are reused so I'm not even sure how I'd go about
setting up and tearing down a KVO type relationship for the specific cell I
am dragging around. Maybe there is a WWDC video that digs into this? or
it's an easy explain?

Sorry for being so long-winded. I'm not sure I'm communicating my question
well. Hope you can understand my underlying question and nudge me the right
way but at any rate, thanks for your help so far. I'd love to use an
elegant, "made for CollectionView" solution ... but I don't think I'm
looking at it correctly yet. Just in general I guess, how can a change to
the layoutAttributes cause my CollectionViewDelegate and DataSources to
fetch the cell I'm dragging around and change it (or does it not require
the delegates or datasources ... ?)

Thanks,
-Luther



On Mon, Mar 7, 2016 at 2:45 PM, Luke Hiesterman  wrote:

> You can create your own subclass of UICollectionViewLayoutAttributes and
> add something like an “isMoving” property to that. Then teach your cell
> classes to respond to that property by changing the background color.
>
> Luke
>
> On Mar 7, 2016, at 11:44 AM, Luther Baker  wrote:
>
> Thanks Luke! That was it - I can drag and drop successfully now.
>
> One more question, how do I modify a property of the item I'm dragging
> around if the property is NOT currently in UICollectionViewLayoutAttributes
> ... I don't see a call to the datasource or delegate when I select the cell
> for moving ... so I'm not sure how to change the background color to "red"
> for instance.
>
> Would I have to add my own view to the superview and manually move it
> around in the dragging callbacks?
>
> Thanks!
> -Luther
>
>
> On Mon, Mar 7, 2016 at 11:59 AM, Luke Hiesterman 
> wrote:
>
>> I’d check your return value for this method in your layout:
>>
>> - (UICollectionViewLayoutAttributes
>> *)layoutAttributesForInteractivelyMovingItemAtIndexPath:(NSIndexPath
>> *)indexPath withTargetPosition:(CGPoint)position NS_AVAILABLE_IOS(9_0);
>>
>> Luke
>>
>> On Mar 7, 2016, at 9:55 AM, Luther Baker  wrote:
>>
>> I followed the directions here,
>>
>> http://nshint.io/blog/2015/07/16/uicollectionviews-now-have-easy-reordering/
>> - to add iOS9 style dragging to my UICollectionView - and it sort of
>> works.
>>
>> As described in the article, I added a long press gesture recognizer and
>> wired it in to make calls on the collection view -- but now, if I long
>> press, the element under my finger disappears. As I drag the transparent
>> image around, the other elements shift - but I can never see the element I
>> am dragging around. When I let go, there is simply a hole left where I
>> "dropped" the element.
>>
>> I do, very much, have a custom layout and I'm not sure that if, for drag,
>> I
>> need to do anything special. Do I need to calculate the frame of the item
>> I
>> am dragging around? I'm not sure what to try next except to roll my own
>> dragging. Any thoughts or things to try?
>>
>> Thanks in advance.
>> ___
>>
>> 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/luketheh%40apple.com
>>
>> This email sent to luket...@apple.com
>>
>>
>>
>
>

Re: UICollectionView Moving

2016-03-07 Thread Luke Hiesterman
You can create your own subclass of UICollectionViewLayoutAttributes and add 
something like an “isMoving” property to that. Then teach your cell classes to 
respond to that property by changing the background color.

Luke

On Mar 7, 2016, at 11:44 AM, Luther Baker 
> wrote:

Thanks Luke! That was it - I can drag and drop successfully now.

One more question, how do I modify a property of the item I'm dragging around 
if the property is NOT currently in UICollectionViewLayoutAttributes ... I 
don't see a call to the datasource or delegate when I select the cell for 
moving ... so I'm not sure how to change the background color to "red" for 
instance.

Would I have to add my own view to the superview and manually move it around in 
the dragging callbacks?

Thanks!
-Luther


On Mon, Mar 7, 2016 at 11:59 AM, Luke Hiesterman 
> wrote:
I’d check your return value for this method in your layout:

- (UICollectionViewLayoutAttributes 
*)layoutAttributesForInteractivelyMovingItemAtIndexPath:(NSIndexPath 
*)indexPath withTargetPosition:(CGPoint)position NS_AVAILABLE_IOS(9_0);

Luke

On Mar 7, 2016, at 9:55 AM, Luther Baker 
> wrote:

I followed the directions here,
http://nshint.io/blog/2015/07/16/uicollectionviews-now-have-easy-reordering/
- to add iOS9 style dragging to my UICollectionView - and it sort of works.

As described in the article, I added a long press gesture recognizer and
wired it in to make calls on the collection view -- but now, if I long
press, the element under my finger disappears. As I drag the transparent
image around, the other elements shift - but I can never see the element I
am dragging around. When I let go, there is simply a hole left where I
"dropped" the element.

I do, very much, have a custom layout and I'm not sure that if, for drag, I
need to do anything special. Do I need to calculate the frame of the item I
am dragging around? I'm not sure what to try next except to roll my own
dragging. Any thoughts or things to try?

Thanks in advance.
___

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/luketheh%40apple.com

This email sent to luket...@apple.com



___

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

Re: State Restoration thinks all my windows closes prior to quit

2016-03-07 Thread Quincey Morris
On Mar 5, 2016, at 01:36 , Daryle Walker  wrote:
> 
> The “applicationOpenUntitledFile:” and “newDocument:” methods call this 
> method.

On Mar 7, 2016, at 12:30 , Daryle Walker  wrote:
> 
> I haven’t set any restoration class. But that wasn’t a problem before; 
> Apple’s default code worked just fine. I don’t know what I changed to break 
> it.

It sounds like this is a document-based app, even if it isn’t currently a 
NSDocument-based app. Apple has no “default code” for document-based apps that 
don’t use NSDocument. So, my guess is that you were previously using NSDocument 
and now you’re not.

If that’s not the case, do you still have the project that “worked” until the 
changes broke it?

___

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

Re: State Restoration thinks all my windows closes prior to quit

2016-03-07 Thread Daryle Walker
On Mar 5, 2016, at 12:11 PM, Quincey Morris 
 wrote:
> 
> On Mar 5, 2016, at 01:36 , Daryle Walker  > wrote:
>> 
>> Default project Xcode 7 with OS X Cocoa app, with Storyboards but without 
>> Core Data nor Documents. Somewhere I messed up and State Restoration stopped 
>> working correctly. It somehow thinks when quit happens and any open windows 
>> get automatically closed that those windows were user-closed instead and 
>> therefore not restored.
> 
> Maybe I’m missing something, but I don’t see where you set the restoration 
> class on the windows you create. Note that when you have a NSDocument-based 
> app, NSDocumentController takes care of this for you. Without the restoration 
> class, there’s no state restoration.

I haven’t set any restoration class. But that wasn’t a problem before; Apple’s 
default code worked just fine. I don’t know what I changed to break it.

— 
Daryle Walker
Mac, Internet, and Video Game Junkie
darylew AT mac DOT com 

___

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

Re: UICollectionView Moving

2016-03-07 Thread Luther Baker
Thanks Luke! That was it - I can drag and drop successfully now.

One more question, how do I modify a property of the item I'm dragging
around if the property is NOT currently in UICollectionViewLayoutAttributes
... I don't see a call to the datasource or delegate when I select the cell
for moving ... so I'm not sure how to change the background color to "red"
for instance.

Would I have to add my own view to the superview and manually move it
around in the dragging callbacks?

Thanks!
-Luther


On Mon, Mar 7, 2016 at 11:59 AM, Luke Hiesterman  wrote:

> I’d check your return value for this method in your layout:
>
> - (UICollectionViewLayoutAttributes
> *)layoutAttributesForInteractivelyMovingItemAtIndexPath:(NSIndexPath
> *)indexPath withTargetPosition:(CGPoint)position NS_AVAILABLE_IOS(9_0);
>
> Luke
>
> On Mar 7, 2016, at 9:55 AM, Luther Baker  wrote:
>
> I followed the directions here,
>
> http://nshint.io/blog/2015/07/16/uicollectionviews-now-have-easy-reordering/
> - to add iOS9 style dragging to my UICollectionView - and it sort of works.
>
> As described in the article, I added a long press gesture recognizer and
> wired it in to make calls on the collection view -- but now, if I long
> press, the element under my finger disappears. As I drag the transparent
> image around, the other elements shift - but I can never see the element I
> am dragging around. When I let go, there is simply a hole left where I
> "dropped" the element.
>
> I do, very much, have a custom layout and I'm not sure that if, for drag, I
> need to do anything special. Do I need to calculate the frame of the item I
> am dragging around? I'm not sure what to try next except to roll my own
> dragging. Any thoughts or things to try?
>
> Thanks in advance.
> ___
>
> 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/luketheh%40apple.com
>
> This email sent to luket...@apple.com
>
>
>
___

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

Re: Returning a string value from a c function to a Objective-C class method. Is there an approved approach?

2016-03-07 Thread Alex Zavatone
Just a formal note:

You guys are awesome.

THANK YOU.

I've got a .m file that serves as a C and Objective-C layer (glue layer?) to 
the library methods.

In it, I have one id that is the reference back to the object itself.

Each static C function that returns data, constructs an Objective-C friendly 
data type and passes it on to the C method's equivalent Objective-C partner.

This then pipes data off somewhere else and the chain drops.

Observers are set up in classes that care about the data and react to the 
change, taking it and storing it or further processing it as needed.  If 
classes need to execute any of the functions within the API they can be called 
from Objective-C methods that wrap the corresponding C code and callbacks are 
handled in a block.

These C functions call the .a files' API and respond to its messages just like 
they are supposed to.

Now, to flesh this all out.  Thanks again.

- Alex Zavatone



___

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

Re: UICollectionView Moving

2016-03-07 Thread Luke Hiesterman
I’d check your return value for this method in your layout:

- (UICollectionViewLayoutAttributes 
*)layoutAttributesForInteractivelyMovingItemAtIndexPath:(NSIndexPath 
*)indexPath withTargetPosition:(CGPoint)position NS_AVAILABLE_IOS(9_0);

Luke

On Mar 7, 2016, at 9:55 AM, Luther Baker 
> wrote:

I followed the directions here,
http://nshint.io/blog/2015/07/16/uicollectionviews-now-have-easy-reordering/
- to add iOS9 style dragging to my UICollectionView - and it sort of works.

As described in the article, I added a long press gesture recognizer and
wired it in to make calls on the collection view -- but now, if I long
press, the element under my finger disappears. As I drag the transparent
image around, the other elements shift - but I can never see the element I
am dragging around. When I let go, there is simply a hole left where I
"dropped" the element.

I do, very much, have a custom layout and I'm not sure that if, for drag, I
need to do anything special. Do I need to calculate the frame of the item I
am dragging around? I'm not sure what to try next except to roll my own
dragging. Any thoughts or things to try?

Thanks in advance.
___

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/luketheh%40apple.com

This email sent to luket...@apple.com

___

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

UICollectionView Moving

2016-03-07 Thread Luther Baker
I followed the directions here,
http://nshint.io/blog/2015/07/16/uicollectionviews-now-have-easy-reordering/
- to add iOS9 style dragging to my UICollectionView - and it sort of works.

As described in the article, I added a long press gesture recognizer and
wired it in to make calls on the collection view -- but now, if I long
press, the element under my finger disappears. As I drag the transparent
image around, the other elements shift - but I can never see the element I
am dragging around. When I let go, there is simply a hole left where I
"dropped" the element.

I do, very much, have a custom layout and I'm not sure that if, for drag, I
need to do anything special. Do I need to calculate the frame of the item I
am dragging around? I'm not sure what to try next except to roll my own
dragging. Any thoughts or things to try?

Thanks in advance.
___

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