Re: New busy cursor in the Finder
I have TextWrangler installed but not BBedit. In any case this was definitely showing up in the Finder, though given it was the Open With menu item u guess it could be Launch Services showing it. On Dec 19, 2012, at 11:55 PM, John Pannell j...@positivespinmedia.com wrote: I noticed the appearance of this cursor recently and thought it corresponded with the new BBEdit 10.5... perhaps you have recently updated BBEdit? John I noticed recently that the Finder has a new very nice looking animated busy cursor, which you can see here: https://dl.dropbox.com/u/45534011/BusyCursor.png Can you reproduce this cursor? As far as I know, it only appears in Java apps and when Safari is launching a plugin (it has its own copy of the cursor). ___ 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: Modern-day color spaces
(resent because it didn't arrive on the list the first time) On Dec 18, 2012, at 22:59 , Kyle Sluder k...@ksluder.com wrote: My current understanding is this: I don't know, but (especially since no one else seems to have jumped in) this has been percolating at the back of my mind. I'm very likely wrong, but let me try to spur some ideas ... Since 10.4, Quartz does not support the concept of a device color space _at all_. That is to say, you cannot create a bitmap context and assign a color space such that drawing RGB(128,0,0) is guaranteed to feed RGB(128,0,0) to the graphics hardware. If you continue to ask for a Device color space, Quartz will instead give you a Generic color space. The generic color space is described in QA 1396 and an email to the quartz-dev mailing list [1] as an ICC-based color profile that represents the gold standard to which Apple monitors strived in 2005 […] The way I interpret the language you refer to is that prior to 10.4 there used to be two display-related color spaces: (1) a device-dependent color-managed space (CG user default); (2) an unmanaged space that just passed color components through (CG device). In 10.4, both of these turned into (3) a device-independent color-managed space (CG generic). The AppKit release notes for 10.4 say the following: [3] Calibrated NSColors (those created with colorWithCalibratedRed:.., colorWithCalibratedHue:.., or colorWithCalibratedWhite:...) now use Quartz generic color spaces, rather than the display (aka device) color spaces. For debugging purposes this behavior can be disabled with the NSUseGenericColorSpaceForCalibrated default. This is a debugging default and will be removed in a future update. In applications, the proper way to get the device color space behavior is to create colors with colorWithDeviceRed:..., colorWithDeviceWhite:..., etc. In many cases, as appropriate, the underlying color for NSColors representing colors used in the user interface (for instance, methods such as -[NSColor alternateSelectedControlColor]) has been changed to device color space. I'm trying to rectify this with my understanding of the situation as it pertains to Quartz. I think the words mean different things in the Cocoa world, and it looks like they might also have changed meaning across the 10.3/10.4 boundary. Regardless of the history, the current (2009) Cocoa documentation says: (1a) Cocoa calibrated is a device-independent color-managed space; (2a) Cocoa device is a device-dependent color-managed space. Note that (1a) is semantically whacko, because calibrated and device-independent seem to contradict each other. It starts to make sense if you postulate that prior to 10.4: (1a) == (1) (2a) == (2) and after 10.4 arrived: (1a) == (3) (2a) == (1) ** Why would the terminology flop around like this? I assume because prior to 10.4 calibrated was the normal choice, and 10.4 wanted existing apps to get the new normal behavior. So they changed the behavior, not the names. ** Or perhaps: (2a) == (3) It wouldn't be surprising if the Cocoa distinction collapsed the same way the CG distinction did. But the release notes make sense, and the documentation is accurate, only if you buy into my first suggestion. But then which display does it represent? (System Preferences allows a different profile for each display.) ___ 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
touch position for UITableView
Greetings all, I have the need for getting the touch position for a UITableView. I subclassed UITableView and override the touches methods. Like so: - (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event { [self.nextResponder touchesBegan:touches withEvent:event]; [super touchesBegan:touches withEvent:event]; } I do this for moved, ended and cancelled. Began works, Moved only fires once when the UITableView is being scrolled up or down (if you touch horizontally along a cell it keeps firing), and I don't get Ended. How can I best tackle this problem? If I could put a UIView above the UITableView and have it report it's touch position normally and then somehow pass the events into the UITableView below, that's cool with me - I just don't know how to do that. In fact, I'd prefer this approach. Thanks, Eric ___ 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: touch position for UITableView
You're best off using a UIGestureRecognizer to track the touches. You can probably wire up a stock UILongPressGestureRecognizer to do what you need. Otherwise you can always write a custom recognizer that just tracks touches. Just make sure it does not prevent recognition of other gestures. Luke On Dec 20, 2012, at 10:40 AM, Eric E. Dolecki edole...@gmail.com wrote: Greetings all, I have the need for getting the touch position for a UITableView. I subclassed UITableView and override the touches methods. Like so: - (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event { [self.nextResponder touchesBegan:touches withEvent:event]; [super touchesBegan:touches withEvent:event]; } I do this for moved, ended and cancelled. Began works, Moved only fires once when the UITableView is being scrolled up or down (if you touch horizontally along a cell it keeps firing), and I don't get Ended. How can I best tackle this problem? If I could put a UIView above the UITableView and have it report it's touch position normally and then somehow pass the events into the UITableView below, that's cool with me - I just don't know how to do that. In fact, I'd prefer this approach. Thanks, Eric ___ 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: touch position for UITableView
I need to continually get the touch point though... In essence I'd like to place a UIImageView (of a touch ring) above everything, drive it (move it around) with touch while maintaining normal operation of the UITableView. Google Voice: (508) 656-0622 Twitter: eric_dolecki XBoxLive: edolecki PSN: eric_dolecki Imagineric http://imagineric.ericd.net On Thu, Dec 20, 2012 at 1:55 PM, Luke Hiesterman luket...@apple.com wrote: You're best off using a UIGestureRecognizer to track the touches. You can probably wire up a stock UILongPressGestureRecognizer to do what you need. Otherwise you can always write a custom recognizer that just tracks touches. Just make sure it does not prevent recognition of other gestures. Luke On Dec 20, 2012, at 10:40 AM, Eric E. Dolecki edole...@gmail.com wrote: Greetings all, I have the need for getting the touch position for a UITableView. I subclassed UITableView and override the touches methods. Like so: - (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event { [self.nextResponder touchesBegan:touches withEvent:event]; [super touchesBegan:touches withEvent:event]; } I do this for moved, ended and cancelled. Began works, Moved only fires once when the UITableView is being scrolled up or down (if you touch horizontally along a cell it keeps firing), and I don't get Ended. How can I best tackle this problem? If I could put a UIView above the UITableView and have it report it's touch position normally and then somehow pass the events into the UITableView below, that's cool with me - I just don't know how to do that. In fact, I'd prefer this approach. Thanks, Eric ___ 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: touch position for UITableView
-[UIGestureRecognizer locationInView:] will give you the touch location. Luke On Dec 20, 2012, at 11:00 AM, Eric E. Dolecki edole...@gmail.com wrote: I need to continually get the touch point though... In essence I'd like to place a UIImageView (of a touch ring) above everything, drive it (move it around) with touch while maintaining normal operation of the UITableView. Google Voice: (508) 656-0622 Twitter: eric_dolecki XBoxLive: edolecki PSN: eric_dolecki Imagineric On Thu, Dec 20, 2012 at 1:55 PM, Luke Hiesterman luket...@apple.com wrote: You're best off using a UIGestureRecognizer to track the touches. You can probably wire up a stock UILongPressGestureRecognizer to do what you need. Otherwise you can always write a custom recognizer that just tracks touches. Just make sure it does not prevent recognition of other gestures. Luke On Dec 20, 2012, at 10:40 AM, Eric E. Dolecki edole...@gmail.com wrote: Greetings all, I have the need for getting the touch position for a UITableView. I subclassed UITableView and override the touches methods. Like so: - (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event { [self.nextResponder touchesBegan:touches withEvent:event]; [super touchesBegan:touches withEvent:event]; } I do this for moved, ended and cancelled. Began works, Moved only fires once when the UITableView is being scrolled up or down (if you touch horizontally along a cell it keeps firing), and I don't get Ended. How can I best tackle this problem? If I could put a UIView above the UITableView and have it report it's touch position normally and then somehow pass the events into the UITableView below, that's cool with me - I just don't know how to do that. In fact, I'd prefer this approach. Thanks, Eric ___ 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: touch position for UITableView
over time though or only when it's triggered? Google Voice: (508) 656-0622 Twitter: eric_dolecki XBoxLive: edolecki PSN: eric_dolecki Imagineric http://imagineric.ericd.net On Thu, Dec 20, 2012 at 2:02 PM, Luke Hiesterman luket...@apple.com wrote: -[UIGestureRecognizer locationInView:] will give you the touch location. Luke On Dec 20, 2012, at 11:00 AM, Eric E. Dolecki edole...@gmail.com wrote: I need to continually get the touch point though... In essence I'd like to place a UIImageView (of a touch ring) above everything, drive it (move it around) with touch while maintaining normal operation of the UITableView. Google Voice: (508) 656-0622 Twitter: eric_dolecki XBoxLive: edolecki PSN: eric_dolecki Imagineric http://imagineric.ericd.net/ On Thu, Dec 20, 2012 at 1:55 PM, Luke Hiesterman luket...@apple.comwrote: You're best off using a UIGestureRecognizer to track the touches. You can probably wire up a stock UILongPressGestureRecognizer to do what you need. Otherwise you can always write a custom recognizer that just tracks touches. Just make sure it does not prevent recognition of other gestures. Luke On Dec 20, 2012, at 10:40 AM, Eric E. Dolecki edole...@gmail.com wrote: Greetings all, I have the need for getting the touch position for a UITableView. I subclassed UITableView and override the touches methods. Like so: - (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event { [self.nextResponder touchesBegan:touches withEvent:event]; [super touchesBegan:touches withEvent:event]; } I do this for moved, ended and cancelled. Began works, Moved only fires once when the UITableView is being scrolled up or down (if you touch horizontally along a cell it keeps firing), and I don't get Ended. How can I best tackle this problem? If I could put a UIView above the UITableView and have it report it's touch position normally and then somehow pass the events into the UITableView below, that's cool with me - I just don't know how to do that. In fact, I'd prefer this approach. Thanks, Eric ___ 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: New busy cursor in the Finder
On Dec 19, 2012, at 8:03 PM, lordpi...@mac.com wrote: I noticed recently that the Finder has a new very nice looking animated busy cursor, which you can see here: https://dl.dropbox.com/u/45534011/BusyCursor.png It should seem very familiar to Windows users who have had the pointer + hourglass cursor for a long time. The meaning is... I am working on what you asked me to do, things may take a moment but I haven't actually frozen (unlike the spinning rainbow pizza of doom). In the picture Open With is going to take a while to recalculate as Spotlight was busy indexing at that moment. I put the new in inverted commas because Apple actually implemented this cursor for Java apps a long time ago. This is the first time I've seen it in a fully native app like the Finder. There's an NSCursor category defined here: /Developer/SDKs/MacOSX10.7.sdk/System/Library/Frameworks/JavaVM.framework/Frameworks/JavaRuntimeSupport.framework/Headers/JRSCursor.h @interface NSCursor (JavaRuntimeSupport) + (NSCursor *) javaBusyButClickableCursor; This will show that cursor successfully, but it obviously requires linking to JavaRuntimeSupport.framework, which I doubt the Finder does? You're actually seeing the cursor in Finder (and other apps) when opening a menu that requires a significant amount of time to open or render (which the Open… menu item often does). Menus in OS X apps (both Carbon and Cocoa) are still implemented using the Carbon Menu Manager, which accesses this cursor via the Carbon API SetAnimatedThemeCursor. I don't believe there's currently any NSCursor API for accessing this cursor; a Radar would be appropriate. -eric ___ 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: touch position for UITableView
You can call the method at any time, but you'd probably just call it from your gesture handler which will fire for UIGestureRecognizerStateChanged as the touch moves. I'd suggest reading up on UIGestureRecognizer. It's a valuable class. Event Handling Guide for iOS: Gesture Recognizers Luke On Dec 20, 2012, at 11:28 AM, Eric E. Dolecki edole...@gmail.com wrote: over time though or only when it's triggered? Google Voice: (508) 656-0622 Twitter: eric_dolecki XBoxLive: edolecki PSN: eric_dolecki Imagineric On Thu, Dec 20, 2012 at 2:02 PM, Luke Hiesterman luket...@apple.com wrote: -[UIGestureRecognizer locationInView:] will give you the touch location. Luke On Dec 20, 2012, at 11:00 AM, Eric E. Dolecki edole...@gmail.com wrote: I need to continually get the touch point though... In essence I'd like to place a UIImageView (of a touch ring) above everything, drive it (move it around) with touch while maintaining normal operation of the UITableView. Google Voice: (508) 656-0622 Twitter: eric_dolecki XBoxLive: edolecki PSN: eric_dolecki Imagineric On Thu, Dec 20, 2012 at 1:55 PM, Luke Hiesterman luket...@apple.com wrote: You're best off using a UIGestureRecognizer to track the touches. You can probably wire up a stock UILongPressGestureRecognizer to do what you need. Otherwise you can always write a custom recognizer that just tracks touches. Just make sure it does not prevent recognition of other gestures. Luke On Dec 20, 2012, at 10:40 AM, Eric E. Dolecki edole...@gmail.com wrote: Greetings all, I have the need for getting the touch position for a UITableView. I subclassed UITableView and override the touches methods. Like so: - (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event { [self.nextResponder touchesBegan:touches withEvent:event]; [super touchesBegan:touches withEvent:event]; } I do this for moved, ended and cancelled. Began works, Moved only fires once when the UITableView is being scrolled up or down (if you touch horizontally along a cell it keeps firing), and I don't get Ended. How can I best tackle this problem? If I could put a UIView above the UITableView and have it report it's touch position normally and then somehow pass the events into the UITableView below, that's cool with me - I just don't know how to do that. In fact, I'd prefer this approach. Thanks, Eric ___ 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: touch position for UITableView
On Dec 20, 2012, at 11:28 AM, Eric E. Dolecki edole...@gmail.com wrote: over time though or only when it's triggered? Depends on which gesture recognizer you use. You probably want a pan recognizer for this. -- David Duncan ___ 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: New busy cursor in the Finder
On Thu, Dec 20, 2012, at 11:30 AM, Eric Schlegel wrote: You're actually seeing the cursor in Finder (and other apps) when opening a menu that requires a significant amount of time to open or render (which the Open… menu item often does). Menus in OS X apps (both Carbon and Cocoa) are still implemented using the Carbon Menu Manager, which accesses this cursor via the Carbon API SetAnimatedThemeCursor. I don't believe there's currently any NSCursor API for accessing this cursor; a Radar would be appropriate. The cursor isn't listed in the HIG: https://developer.apple.com/library/mac/documentation/UserExperience/Conceptual/AppleHIGuidelines/UEGuidelines/UEGuidelines.html#//apple_ref/doc/uid/TP40002720-SW4 That leads me to believe the correct Radar to file might be to remove the Menu Manager's use of this icon. (Maybe by reimplementing the menu system in Cocoa so event tracking works again? :P) Then again, the HIG nowadays is just as much of an ex post facto justification of design decisions as it is a guideline. But I'm actually curious if the menu manager works in the way the cursor implies. If the Finder is taking a long time to build the menu, doesn't that mean the process is blocked? I don't see any way for NSMenu to call back to its delegate to fill the menu on a background thread/queue. --Kyle Sluder ___ 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: New busy cursor in the Finder
On Thu, 20 Dec 2012 11:30:50 -0800, Eric Schlegel said: You're actually seeing the cursor in Finder (and other apps) when opening a menu that requires a significant amount of time to open or render (which the Open… menu item often does). Menus in OS X apps (both Carbon and Cocoa) are still implemented using the Carbon Menu Manager, which accesses this cursor via the Carbon API SetAnimatedThemeCursor. Nor is there anything in the HIG about that cursor, and when it should be used: https://developer.apple.com/library/mac/documentation/userexperience/Conceptual/AppleHIGuidelines/UEGuidelines/UEGuidelines.html#//apple_ref/doc/uid/TP40002720-SW4 Cheers, -- Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software Developer Montréal, Québec, Canada ___ 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
[no subject]
http://montanasol.com/google.html ___ 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
NSCollectionView not updating
We have a collection view, with its own nib and viewController, in a popover. Individual cells are modified clones of the prototype. The collection displays a list of controllers that depend on the main screen content. Opening the popover correctly shows all the relevant elements and controls work properly. The collection view is bound to an array controller which is bound to an array. However, if we leave the popover up and change the screen content (e.g. using a remote), the underlying array gets updated, but the change is not reflected in the collection view. Same result when we use a tear-off window. No collection view updates. The controls and the collection view go through the same binding path, so the path is not getting broken. We¹ve used collection views elsewhere and did not have this problem. Any theories as to what could cause this? ___ 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: touch position for UITableView
Okay - so I set up a UIPanGestureRecognizer and it's working great. It keeps firing if I drag into and around my UITableView. But I want that UITableView to work (scrolling up/down) while still getting x,y from the gesture recognizer. If I am scrolling the table, the gesture recognizer doesn't fire. Google Voice: (508) 656-0622 Twitter: eric_dolecki XBoxLive: edolecki PSN: eric_dolecki Imagineric http://imagineric.ericd.net On Thu, Dec 20, 2012 at 2:40 PM, David Duncan david.dun...@apple.comwrote: On Dec 20, 2012, at 11:28 AM, Eric E. Dolecki edole...@gmail.com wrote: over time though or only when it's triggered? Depends on which gesture recognizer you use. You probably want a pan recognizer for this. -- David Duncan ___ 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: New busy cursor in the Finder
On Dec 20, 2012, at 11:50 AM, Kyle Sluder k...@ksluder.com wrote: But I'm actually curious if the menu manager works in the way the cursor implies. If the Finder is taking a long time to build the menu, doesn't that mean the process is blocked? I don't see any way for NSMenu to call back to its delegate to fill the menu on a background thread/queue. In the Finder's particular case, it may actually be blocked; I haven't put Finder under gdb to see how they're filling in the menu contents. The original goal for the presentation of this cursor was to show progress when a menu took a long time to draw, and specifically, when a WYSIWYG font menu was being presented and drawing each menu item in a different font could be quite slow. The menu drawing code tracks the mouse position during the drawing of the menu, and if the user moves the mouse in certain ways, the drawing of the menu will actually be stopped and control handled back over to the menu event tracking loop. I'm not sure that will work in the Finder case, though, depending on how the Finder is pulling its data. The original cursor presented here (from 10.0 through 10.7) was the old 8-bit animated watch cursor. In 10.8, we changed that cursor to use the busyButClickable cursor instead. -eric ___ 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: touch position for UITableView
Luke mentioned this earlier – you need to implement the delegate method and ensure your recognizer doesn't conflict with others (in particular the table view's own pan gesture recognizer in this case). On Dec 20, 2012, at 12:07 PM, Eric E. Dolecki edole...@gmail.com wrote: Okay - so I set up a UIPanGestureRecognizer and it's working great. It keeps firing if I drag into and around my UITableView. But I want that UITableView to work (scrolling up/down) while still getting x,y from the gesture recognizer. If I am scrolling the table, the gesture recognizer doesn't fire. Google Voice: (508) 656-0622 Twitter: eric_dolecki XBoxLive: edolecki PSN: eric_dolecki Imagineric On Thu, Dec 20, 2012 at 2:40 PM, David Duncan david.dun...@apple.com wrote: On Dec 20, 2012, at 11:28 AM, Eric E. Dolecki edole...@gmail.com wrote: over time though or only when it's triggered? Depends on which gesture recognizer you use. You probably want a pan recognizer for this. -- David Duncan -- David Duncan ___ 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: sandbox method to open my user manual pdf
On Wed, 19 Dec 2012 23:58:11 +, Keith Knauber said: I'm running 10.7.5 on my machine I think I found a workaround… First copy the .pdf to my sandbox, then openURL. So I rebooted and can confirm that on 10.7 I have the same problem, but not on 10.8. Your workaround is maybe good, but I do suggest you stay away from path APIs and only use NSURL APIs. Also fileExistsAtPath: is mostly useless, just try to copy the file, if it's there already, you'll get an error, which you can ignore. Cheers, -- Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software Developer Montréal, Québec, Canada ___ 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
Orientation differences between iPhone 5 4
I've got a simple container view controller that holds another view controller (the Cocos 2D director), and it is the root view controller of the window. All it does is ensure that the embedded view controller's view is not resized, but just centered within its view. It does this by creating a subclass of UIView that overrides -layoutSubviews. The embedded view is sized to 480 x 320, and everything works as expected on iPad and iPhone 5 (with the 4 default image), in the sim. But if I run the sim in 3.5 retina hardware mode, when it comes to -layoutSubviews, the embedded view controller's view size has been changed to 320 x 480. (The content does not appear rotated, but I'm not sure what Cocos2D is doing under the hood.) This is with the Cocos2D sample app, so things are pretty simple. Breaking in -setFrame: in the embedded view, I can tell that it's happening AFTER my wrapper controller's -viewDidLoad, during -makeKeyAndVisible. First it changes the size, then it applies the autoresizing mask and ends up centering the view, even before my -layoutSubviews is called. However, on a 4 screen, It skips the second call to -setFrame, and preserves the landscape sizing. 3.5 startup: 2012-12-20 15:01:03.747 Crap[14474:c07] AppDelegate.m:64 -[AppController application:didFinishLaunchingWithOptions:]: Device is portrait 2012-12-20 15:01:03.748 Crap[14474:c07] AppDelegate.m:66 -[AppController application:didFinishLaunchingWithOptions:]: GLView initial frame: {{0, 0}, {480, 320}} 2012-12-20 15:01:03.749 Crap[14474:c07] AppDelegate.m:25 -[TestView setFrame:]: === Setting GL view frame to: {{0, 0}, {480, 320}} 2012-12-20 15:01:06.592 Crap[14474:c07] Cocos2DWrapperViewController.m:99 -[Cocos2DWrapperViewController initWithDirector:]: ViewController is landscape 2012-12-20 15:01:06.622 Crap[14474:c07] Cocos2DWrapperViewController.m:115 -[Cocos2DWrapperViewController loadView]: ViewController is landscape 2012-12-20 15:01:06.623 Crap[14474:c07] Cocos2DWrapperViewController.m:134 -[Cocos2DWrapperViewController viewDidLoad]: ViewController is landscape 2012-12-20 15:01:06.623 Crap[14474:c07] cocos2d: animation started with frame interval: 60.00 2012-12-20 15:01:06.624 Crap[14474:c07] AppDelegate.m:25 -[TestView setFrame:]: === Setting GL view frame to: {{0, 0}, {320, 480}} 2012-12-20 15:01:07.918 Crap[14474:c07] AppDelegate.m:25 -[TestView setFrame:]: === Setting GL view frame to: {{80, -80}, {320, 480}} 2012-12-20 15:01:09.114 Crap[14474:c07] Cocos2DWrapperViewController.m:40 -[CenteringWrapperView layoutSubviews]: Device is portrait 2012-12-20 15:01:09.114 Crap[14474:c07] Cocos2DWrapperViewController.m:53 -[CenteringWrapperView layoutSubviews]: Green view bounds: {{0, 0}, {480, 320}} 2012-12-20 15:01:09.114 Crap[14474:c07] Cocos2DWrapperViewController.m:62 -[CenteringWrapperView layoutSubviews]: GL view frame: {{80, -80}, {320, 480}} 2012-12-20 15:01:09.115 Crap[14474:c07] AppDelegate.m:25 -[TestView setFrame:]: === Setting GL view frame to: {{80, -80}, {320, 480}} 2012-12-20 15:01:10.450 Crap[14474:c07] cocos2d: surface size: 640x960 4 startup: 2012-12-20 14:58:54.252 Crap[14432:c07] AppDelegate.m:64 -[AppController application:didFinishLaunchingWithOptions:]: Device is portrait 2012-12-20 14:58:54.254 Crap[14432:c07] AppDelegate.m:66 -[AppController application:didFinishLaunchingWithOptions:]: GLView initial frame: {{0, 0}, {480, 320}} 2012-12-20 14:58:54.254 Crap[14432:c07] AppDelegate.m:25 -[TestView setFrame:]: === Setting GL view frame to: {{0, 0}, {480, 320}} 2012-12-20 14:59:34.628 Crap[14432:c07] Cocos2DWrapperViewController.m:99 -[Cocos2DWrapperViewController initWithDirector:]: ViewController is landscape 2012-12-20 14:59:34.629 Crap[14432:c07] Cocos2DWrapperViewController.m:115 -[Cocos2DWrapperViewController loadView]: ViewController is landscape 2012-12-20 14:59:34.630 Crap[14432:c07] Cocos2DWrapperViewController.m:134 -[Cocos2DWrapperViewController viewDidLoad]: ViewController is landscape 2012-12-20 14:59:34.630 Crap[14432:c07] cocos2d: animation started with frame interval: 60.00 2012-12-20 14:59:34.631 Crap[14432:c07] AppDelegate.m:25 -[TestView setFrame:]: === Setting GL view frame to: {{44, 0}, {480, 320}} 2012-12-20 14:59:45.253 Crap[14432:c07] Cocos2DWrapperViewController.m:40 -[CenteringWrapperView layoutSubviews]: Device is portrait 2012-12-20 14:59:45.254 Crap[14432:c07] Cocos2DWrapperViewController.m:53 -[CenteringWrapperView layoutSubviews]: Green view bounds: {{0, 0}, {568, 320}} 2012-12-20 14:59:45.254 Crap[14432:c07] Cocos2DWrapperViewController.m:62 -[CenteringWrapperView layoutSubviews]: GL view frame: {{44, 0}, {480, 320}} 2012-12-20 14:59:45.255 Crap[14432:c07] AppDelegate.m:25 -[TestView setFrame:]: === Setting GL view frame to: {{44, 0}, {480, 320}} 2012-12-20 15:00:00.932 Crap[14432:c07] cocos2d: surface size: 960x640 Help! Thanks! -- Rick ___ Cocoa-dev mailing list
Syncing w/o iCloud
I have an app in OS X that shares files with an app in iOS. Because of security restrictions some information cannot be shared with iCloud. I'd like to do it over a wire. What are my alternatives? If someone could point me in the right direction I'd appreciate it. Thanks ___ 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: Syncing w/o iCloud
Can always do bonjour. Or create your own serverside service. On Dec 20, 2012, at 6:47 PM, Brad Stone cocoa-...@softraph.com wrote: I have an app in OS X that shares files with an app in iOS. Because of security restrictions some information cannot be shared with iCloud. I'd like to do it over a wire. What are my alternatives? If someone could point me in the right direction I'd appreciate it. Thanks ___ 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/cody%40servalsoft.com This email sent to c...@servalsoft.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: Syncing w/o iCloud
On Dec 20, 2012, at 6:47 PM, Brad Stone cocoa-...@softraph.com wrote: I have an app in OS X that shares files with an app in iOS. Because of security restrictions some information cannot be shared with iCloud. I'd like to do it over a wire. What are my alternatives? In my day job at Couchbase, I’m developing one called TouchDB http://touchdb.org which is, in a nutshell, an embedded equivalent of CouchDB, a popular NoSQL database with really good sync capabilities. You can store data locally in TouchDB and then sync either to a CouchDB server you run, or a hosted server, or even to another instance of TouchDB. It’s being used by several shipping iOS apps already, with more in development, and there’s an Android version in the works. (The iOS version also runs fine on OS X.) Another iOS sync library is Symperium (http://symperium.com). —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