Re: Building a 64-bit Preferences Pane
I just realized that the dev forums for Mac is only available for Select or Premier member of ADC, not the online member. Do you mind to share the solution ? Jesse Armand (http://jessearmand.com) 2009/4/30 慧 松本 sato...@mac.com: Thanks!! My problem was resolved at https://devforums.apple.com/community/mac Satoshi On 2009/04/30, at 12:59, Clark Cox wrote: 2009/4/29 慧 松本 sato...@mac.com: On 2009/04/30, at 12:05, Andrew Farmer wrote: On 29 Apr 09, at 19:48, 慧 松本 wrote: Does anybody know how to make 64-bit preference panes? You can't, yet. The System Preferences application - which loads preference panes as plugins - is still 32-bit only, so it can't load 64-bit prefpane plugins. Sorry, I forgot to mention my OS environment. I am developing the preference pane on Mac OS X 10.6 Snow Leopard build 10A335. Does my question violate NDA? Take it to https://devforums.apple.com/community/mac -- Clark S. Cox III clarkc...@gmail.com - Satoshi Matsumoto sato...@mac.com 816-5 Odake, Odawara, Kanagawa, Japan 256-0802 ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/mnemonic.fx%40gmail.com This email sent to mnemonic...@gmail.com ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Building a 64-bit Preferences Pane
Okay thanks, I also found the solution from a blog somewhere while searching. It's weird how Apple lay out all of the important things about 64-bit in the docs, but left out this one somewhere that I couldn't find easily. I also ran the script to check for 64-bit compatibility, added the proper #ifdef for it (it's only about data types). 2009/9/18 MATSUMOTO Satoshi sato...@mac.com: Hi, Building 64-bit Preferences Pane... In response to satoshi on Apr 30, 2009 2:21 PM I have been trying to make a simple 64-bit Preference Pane on Snow Leopard buid 10A335. But all trials ended in failure. For example: 1) Make a new preference pane project SamplePrefPane with Xcode. 2) Set the build option ARCHS to x86_64 3) Build it and double click SamplePrefPane.prefPane ANSWER 2.5) turn on Garbage Collection. (Search for garbage collection in build settings inspector) On Snow Leopard, System Preferences has garbage collection enabled when launched as a 64 bit application (default on 64 bit capable machines). If you intend on supporting both 32 bit and 64 bit machines, you'll need to build your preference pane as a dual mode module; gc supported instead of gc only. Then System Preferences app says: Preferences Error You can't open SimplePrefPane preferences because it doesn't work on an Intel-based Mac. That is a horribly failure message. Please file a bug via http://bugreporter.apple.com/. Satoshi Jesse Armand (http://jessearmand.com) ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Building a 64-bit Preferences Pane
On Sep 18, 2009, at 9:01 AM, Jesse Armand mnemonic...@gmail.com wrote: It's weird how Apple lay out all of the important things about 64-bit in the docs, but left out this one somewhere that I couldn't find easily. Garbage collection and 64-bit are orthogonal issues. A process can be one, both, or neither. If you're building a bundle to be loaded by another app, use otool on the app to figure out what kind of bundle you need to be. --Kyle Sluder ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Building a 64-bit Preferences Pane
I have been trying to make a simple 64-bit preference pane. But all trials ended in failure. For example: 1) Make a new preference pane project SamplePrefPane with Xcode. 2) Set the build option ARCHS to x86_64 3) Build it and double click SamplePrefPane.prefPane Then System Preferences app says: Preferences Error You can't open SimplePrefPane preferences because it doesn't work on an Intel-based Mac. But my machine is MacPro, Quad-Core Intel Xeon. When I change the build option ARCHS to 32-bit universal, it works fine. Does anybody know how to make 64-bit preference panes? Satoshi - Satoshi Matsumoto sato...@mac.com 816-5 Odake, Odawara, Kanagawa, Japan 256-0802 ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Building a 64-bit Preferences Pane
Hi Satoshi, If you run this in Terminal: Bugdom:~ kiel$ file /Applications/System\ Preferences.app/Contents/ MacOS/System\ Preferences /Applications/System Preferences.app/Contents/MacOS/System Preferences: Mach-O universal binary with 2 architectures /Applications/System Preferences.app/Contents/MacOS/System Preferences (for architecture i386): Mach-O executable i386 /Applications/System Preferences.app/Contents/MacOS/System Preferences (for architecture ppc7400): Mach-O executable ppc You can see the System Preferences application is not a 64 bit application (at least, not yet). Therefore, you cannot make a 64 bit preference pane. Kiel On 30/04/2009, at 12:48 PM, 慧 松本 wrote: I have been trying to make a simple 64-bit preference pane. But all trials ended in failure. For example: 1) Make a new preference pane project SamplePrefPane with Xcode. 2) Set the build option ARCHS to x86_64 3) Build it and double click SamplePrefPane.prefPane Then System Preferences app says: Preferences Error You can't open SimplePrefPane preferences because it doesn't work on an Intel-based Mac. But my machine is MacPro, Quad-Core Intel Xeon. When I change the build option ARCHS to 32-bit universal, it works fine. Does anybody know how to make 64-bit preference panes? Satoshi - Satoshi Matsumoto sato...@mac.com 816-5 Odake, Odawara, Kanagawa, Japan 256-0802 ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/kiel.gillard%40gmail.com This email sent to kiel.gill...@gmail.com ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Building a 64-bit Preferences Pane
On 29 Apr 09, at 19:48, 慧 松本 wrote: Does anybody know how to make 64-bit preference panes? You can't, yet. The System Preferences application - which loads preference panes as plugins - is still 32-bit only, so it can't load 64-bit prefpane plugins. Rumor has it this may change in 10.6.___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Building a 64-bit Preferences Pane
On 2009/04/30, at 12:05, Andrew Farmer wrote: On 29 Apr 09, at 19:48, 慧 松本 wrote: Does anybody know how to make 64-bit preference panes? You can't, yet. The System Preferences application - which loads preference panes as plugins - is still 32-bit only, so it can't load 64-bit prefpane plugins. Sorry, I forgot to mention my OS environment. I am developing the preference pane on Mac OS X 10.6 Snow Leopard build 10A335. Does my question violate NDA? Satoshi - Satoshi Matsumoto sato...@mac.com 816-5 Odake, Odawara, Kanagawa, Japan 256-0802 ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Building a 64-bit Preferences Pane
2009/4/29 慧 松本 sato...@mac.com: On 2009/04/30, at 12:05, Andrew Farmer wrote: On 29 Apr 09, at 19:48, 慧 松本 wrote: Does anybody know how to make 64-bit preference panes? You can't, yet. The System Preferences application - which loads preference panes as plugins - is still 32-bit only, so it can't load 64-bit prefpane plugins. Sorry, I forgot to mention my OS environment. I am developing the preference pane on Mac OS X 10.6 Snow Leopard build 10A335. Does my question violate NDA? Take it to https://devforums.apple.com/community/mac -- Clark S. Cox III clarkc...@gmail.com ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Building a 64-bit Preferences Pane
Thanks!! My problem was resolved at https://devforums.apple.com/community/mac Satoshi On 2009/04/30, at 12:59, Clark Cox wrote: 2009/4/29 慧 松本 sato...@mac.com: On 2009/04/30, at 12:05, Andrew Farmer wrote: On 29 Apr 09, at 19:48, 慧 松本 wrote: Does anybody know how to make 64-bit preference panes? You can't, yet. The System Preferences application - which loads preference panes as plugins - is still 32-bit only, so it can't load 64-bit prefpane plugins. Sorry, I forgot to mention my OS environment. I am developing the preference pane on Mac OS X 10.6 Snow Leopard build 10A335. Does my question violate NDA? Take it to https://devforums.apple.com/community/mac -- Clark S. Cox III clarkc...@gmail.com - Satoshi Matsumoto sato...@mac.com 816-5 Odake, Odawara, Kanagawa, Japan 256-0802 ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com