OS X 10.9 issues
All  1-10  11-13

Previous
Next
 From:  Will (ALTAIC)
6339.11 In reply to 6339.10 
Hi again Michael,

Indeed you appear to be correct about #2; I verified by injecting code into XQuartz and calling [[NSApplication sharedInstance] windows], which failed to list client application windows. From browsing XQuartz code, I did see NSWindow being used, though I'm not sure in what way. The NSEvents being captured seemed to not have valid NSWindow references, so it's pretty conclusive that it's doing something else for client windows.

The situation for #1 seems to be the same as when we first looked into this: there is no known way to get device information from an NSEvent. The hasPreciseScrollingDeltas member function will differentiate a regular scroll wheel from a trackpad scroll, but since the magic mouse uses a touch sensor, it is indistinguishable from an actual trackpad (other than the number of fingers touching, but even then, I believe the magic mouse allows two finger scrolling as well; not sure how many fingers are reported via touchesMatchingPhase since I don't have a magic mouse). It is possible Apple attaches IOHID device information to the NSEvent in the various data fields (data1, data2, userData, etc.), but it would be undocumented and I haven't looked into it.

It seems #3 would be the way to go, though it's been a long time since I've used cross-platform UI kits, so I don't have much to add. IIRC, QT requires licensing fees for commercial use. Also, I remember wxWindows/wxWidgets being pretty good, and it's development looks to be active, but nowadays there are a lot of competitors which may or may not be better.

It a real shame the OS X input API is in such bad shape. I had hoped that the iOS input API (which is nice) would replace the API in OS X 10.9, but sadly it didn't. Hopefully Apple will get it together for 10.10.

Cheers and happy holidays,
Will
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Will (ALTAIC)
6339.12 In reply to 6339.11 
FYI, I've reported the touchesMatchingPhase bug to Apple, rdar #15734852.
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
 From:  Michael Gibson
6339.13 In reply to 6339.11 
Hi Will, thanks for reporting the touchesMatchingPhase to Apple to get it on their official bug list. Maybe that will help give it a better chance of getting fixed in a Mavericks update.

re:
> IIRC, QT requires licensing fees for commercial use.

This used to be the case prior to Qt4.5, but with the 4.5 release in 2009 they added an LGPL license that allowed commercial use of Qt without needing to purchase anything.


> Also, I remember wxWindows/wxWidgets being pretty good, and it's development looks to be
> active, but nowadays there are a lot of competitors which may or may not be better.

I evaluated wxWidgets back a while ago, but for my particular targeted use then of trying to use their WebKit integration I ran into an awful lot of instability in that particular area.

- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged
 

Reply to All Reply to All

 

 
 
Show messages: All  1-10  11-13