site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:from:to :in-reply-to:content-type:content-transfer-encoding:mime-version :subject:date:references:x-mailer; bh=l5n0sOwVY9PRg6AGM2IebJZ3FaNlptF2N1zruV+QHm8=; b=Q/qMqrwomwiKtpsSlw288r4UOfZ+K61k/ttpQhWJh1PdGPGGAqf5CjRBACJzw496dt iWkLhwLz04snhxv0rccOqCS9za503vlHavg8NtCx8jGvHH36d5/p2eDYgGQRVA0dGRWz 0QEiKmk9ahf1JtbSX787GMDZieu4k1D4PgVE0= Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:from:to:in-reply-to:content-type :content-transfer-encoding:mime-version:subject:date:references :x-mailer; b=hDDghqHlUXGBmWoFsV5HSrVyXZEvKMuUHsh0AgtBPE1z84YxTW3pf3y47jHu93muyV Gzpr5CFrrd3irUb3Fa6ikfQn0Msj+l1kJeuNzy8Q0/f/Nc5urCI/igk8VBljfYpnfxQZ eBi6kw4SJqD8Tl6JWev/jkrdriT5nfwztRMkU= On Jul 22, 2008, at 9:19 PM, Terry Lambert wrote: Terry, Are you sure about that? I just executed: _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... On Jul 21, 2008, at 5:26 PM, Steve Checkoway wrote: On Jul 21, 2008, at 1:47 PM, Ethan Bold wrote: Until now, UpdateSystemActivity() was the only game in town, but please don't use it anymore! We've got a better alternative. IOPMAssertionCreateWithName() doesn't seem to exist anywhere (google knows nothing about it). IOPMAssertionCreate() doesn't seem to exist in pre-10.5 and since I see no need to restrict to 10.5, that doesn't work for me. * Prefer IOPMAssertionCreateWithName(), which lets you pass a string describing the purpose of the assertion (for debugging & diagnostic use for Apple & yourself) over the vanilla IOPMASsertionCreate. If you invoke IOPMAssertionCreate from multiple points in your code; naming the assertions differently will help identify leaks. As I said, IOPMAssertionCreateWithName() doesn't seem to exist. Xcode doesn't know about it, google doesn't know about it, I can't find it on my system: $ find /System/Library/Frameworks -name '*.h' -print0|xargs -0 grep IOPMAssertionCreateWithName prints nothing. Try IOPMAssertionCreate(); it's defined in the 10.4 and 10.5 SDK in IOKit.framework/Versions/A/Headers/pwr_mgt/IOPMLib.h. I think 10.4 was the first place it was published as non-private. -- Terry find /Developer/SDKs -name '*.h' -print0|xargs -0 grep IOPMAssertionCreate and it only returned results in the 10.5 SDK [with no results for IOPMAssertionCreateWithName]. This email sent to site_archiver@lists.apple.com