• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Record or history of user activity?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Record or history of user activity?


  • Subject: Re: Record or history of user activity?
  • From: Ricky Sharp <email@hidden>
  • Date: Thu, 17 Jan 2008 19:08:39 -0600


On Jan 17, 2008, at 6:55 PM, David Francis wrote:

I'm looking for an API that allows me to record user activity such as items selected from menus, keystroeks, etc. I'm trying to identify what was happening in my application immediately before a crash occurs. Sometimes, backtraces aren't all that helpful.

Of course, I don't want to slow down the application in the process. It seems trapping every NSEvent* and recording it is overkill. Plus it wouldn't give me information such as which menu was selected, which window was frontmost, etc..

Any pointers where to start looking? Is there something in the Accessibility API that might be useful?


No APIs needed for these first three:

(1) Instruments (specifically its User Interface instrument)

(2) Automater's record feature. This is really useful for apps that are accessible as it appears it uses the accessibility APIs to give nice names to your recorded items (e.g. Click the "Drills" button).

(3) PreFab browser can also tap into accessibility-savvy apps and allow you to create GUI scripts.


You can also just look into doing strategically placed NSLogs. Or, better yet, really dig into your crashes using the many different strategies of debugging. For example, perhaps you're trashing memory beforehand and that's why your crash stack-trace isn't that useful? Definitely look at NSZombie and friends for help in that area.


___________________________________________________________
Ricky A. Sharp         mailto:email@hidden
Instant Interactive(tm)   http://www.instantinteractive.com

_______________________________________________

Cocoa-dev mailing list (email@hidden)

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:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Record or history of user activity?
      • From: David Francis <email@hidden>
References: 
 >Record or history of user activity? (From: David Francis <email@hidden>)

  • Prev by Date: Record or history of user activity?
  • Next by Date: Deletion of relation packages during deployement
  • Previous by thread: Record or history of user activity?
  • Next by thread: Re: Record or history of user activity?
  • Index(es):
    • Date
    • Thread