Interesting idea, probably a little beyond me. :) I was hoping there might be a 
direct way of having the UIBarButtonItem respond immediately to a user's touch, 
instead of waiting until the user's finger is lifted.

On Nov 12, 2010, at 8:53 PM, Dave DeLong wrote:

> Random idea (untested, just spouting here)
> 
> What about initing a barButtonItem with a custom view (that view being a 
> UIButton that has the target/action set on the appropriate touch down inside 
> [the end zone! - sorry, couldn't resist]), and then setting the target/action 
> of the barButtonItem itself to nil?
> 
> In other words, let a different control handle the target/action instead of 
> the bar button item itself.
> 
> Dave
> 
> On Nov 12, 2010, at 11:57 AM, Jon Sigman wrote:
> 
>> I struggled this too, but without solution. It seems that toolbar 'buttons' 
>> aren't real buttons -- they're class UIBarButtonItem from UIBarItem from 
>> NSObject. Since they're not really buttons, there doesn't appear any way to 
>> modify their behavior. If there is a way, I'd like to know, too...
>> 
>> 
>> 
>> 
>> ________________________________
>> From: Jonathon Kuo <newsli...@autonomy.caltech.edu>
>> To: Cocoa-Dev List <cocoa-dev@lists.apple.com>
>> Sent: Fri, November 12, 2010 10:02:15 AM
>> Subject: [iPhone] Toolbar button and "Touch Down"
>> 
>> I'm doing an iPhone 4.1 app and I have a toolbar at the bottom with bar 
>> buttons. 
>> The problem is that I need to set one of the bar buttons to "Touch Down" 
>> instead 
>> of the default "Touch Up Inside" but IB doesn't show any touch options for 
>> toolbar buttons (it does for buttons not in the toolbar).
>> 
>> Is there a programmatic way to set this?
>> Thx
>> 
>> _______________________________________________
>> 
>> 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:
>> http://lists.apple.com/mailman/options/cocoa-dev/rf_egr%40yahoo.com
>> 
>> This email sent to rf_...@yahoo.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:
>> http://lists.apple.com/mailman/options/cocoa-dev/davedelong%40me.com
>> 
>> This email sent to davedel...@me.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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

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

Reply via email to