Re: Crashes inside CFStringDeallocate

2018-06-07 Thread Jens Alfke


> On May 29, 2018, at 7:39 AM, Alastair Houghton  
> wrote:
> 
> There’s clearly some kind of bug in your code, but it doesn’t appear to be in 
> the lines you showed us.  If I had to guess, I’d say you’ve over-released 
> your NSString somehow (leading to an attempted double free of the underlying 
> storage);

^This. The crash log clearly says "Freeing already free'd pointer”. If I had to 
guess, I’d say that your code is failing to create an NSString from UTF-16 data 
(for the reasons already described in this thread), and the failure-handling 
code path of your code ends up double-releasing a string. (Which should be 
impossible with ARC alone; are you calling CFString APIs anywhere?)

—Jens

___

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: Can I generate a segue this way?

2018-06-07 Thread Rick Aurbach
Ben,

Thank you so much! You were SO right.

 It’s actually rather interesting, because if I subclass UILabel and build the 
gesture recognizer into it, I don’t need to turn on the ‘user interaction’ 
setting, but if I use the “bare” UILabel class and attach a gesture recognizer 
in IB, I do.

Thanks again for the help.

Cheers,

Rick Aurbach


> On Jun 7, 2018, at 12:18 AM, Ben Kennedy  wrote:
> 
> On Jun 6, 2018, at 11:14 PM, Rick Aurbach  wrote:
> 
>> Working with a storyboard, I add a Tap Gesture Recognizer, connect it to the 
>> label, and connect the segue to the gesture recognizer. I think I've set 
>> everything up correctly, but tapping on the label does not trigger the segue.
> 
> You might need to verify that “user interaction” is enabled for the label 
> (which, if I recall correctly, it is not by default).
> 
> b
> 
> (Hitting both lists huh? :))
> 
> 

___

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