How do I obtain the profileinfo array?

Asked by Mark

Hi there,

I'm hoping to add a table in my app's preferences which shows the information to be sent with the update request if the user chooses to send anonymous profiling information. Ideally, I'd like to display the exact same table which Sparkle shows during the startup prompt.

Where can I get this NSArray from? I've been looking around for over an hour and can't see anything which would return the array. Rummaging through the Sparkle source code, I see that I could allocate my own SUHost object and send it the [host systemProfile] message but that seems really inefficient. Is there a better way?

Many thanks

Question information

Language:
English Edit question
Status:
Solved
For:
Sparkle Edit question
Assignee:
No assignee Edit question
Solved by:
Andy Matuschak
Solved:
Last query:
Last reply:
Revision history for this message
Best Andy Matuschak (andymatuschak) said :
#1

Presently, making an SUHost and asking it is the only way, and even that's an unsupported route (SUHost is private).

Please file a bug report for this, though I'm unlikely to get to it before Next Major.

Revision history for this message
Mark (markjallan) said :
#2

Thanks for the phenomenally fast reply (I make that 3 minutes between question and answer - that's surely some sort of record!)

As requested, I've filed a bug report but in the meantime my idea of using the private SUHost header works perfectly.

Revision history for this message
Mark (markjallan) said :
#3

Thanks Andy Matuschak, that solved my question.