
01-17-2011, 12:14 AM
|
Cheetah
|
|
Join Date: Jan 2011
Posts: 4
|
|
There is a more elegant way to fix the issue with uint64 than my header file mess. Found from the first link here. I also did finally figure out how to make my preferences save properly. Still not able to get tapping to work on the trackpad, but that is the next thing to tackle.
Andy, can you incorporate some of these other patches back into your sources?
http://www.insanelymac.com/forum/ind...post&p=1623714
Code:
// from
clock_get_uptime(&now);
// to
clock_get_uptime((uint64_t *)&now);
http://forum.voodooprojects.org/index.php?topic=99.15
Code:
- NSString *tmp1, *tmp2;
- f=fopen ([tmp2=[NSHomeDirectory() stringByAppendingString:tmp1
- = [NSString stringWithCString: "/Library/Preferences/org.voodoo.SynapticsTouchpad.plist"]] UTF8String], "rb");
- CFRelease(tmp1);
- CFRelease(tmp2);
+ //There was no AutoreleasePool, here is the allocation and init
+ NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
+
+ NSString *tmp1, *tmp2;
+
+ //NSStrings Allocation and Initialization
+ tmp1 = [[NSString alloc] initWithCString:"/Library/Preferences/org.voodoo.SynapticsTouchpad.plist"];
+ tmp2 = [[NSString alloc] init];
+ tmp2 = [NSHomeDirectory() stringByAppendingString:tmp1];
+
+ f=fopen ([tmp2 UTF8String], "rb");
+
+ //We release the AutoreleasePool, this also releases tmp1 and tmp2
+ [pool release];
|