Custom universal types, but outside an application
Custom universal types, but outside an application
- Subject: Custom universal types, but outside an application
- From: email@hidden
- Date: Thu, 08 Sep 2011 22:21:20 +0200
- Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAJFBMVEXy6uBUQTG7wr3IiWod Kh6mXUXyuZL0xat9UED60bqKhGW4m4fYjU9PAAACLklEQVQ4jW3Tv4vbMBQH8EemNjcJMpjrlNDh SEbhDPVk0JC1CIH/AoWSPcJbQyoQvqWd3IzGTTHOdLSENP7n+iTLP472EUjQJ9/3JDmBm6aURleJ td2mp64AbrrsQfXwFcFwShsHSo0CIxgFHPStVAt5uw53m2ghPaVDAFsJTiPfKe1HAyw7GI12iVWQ cdtqq0ZiIxOjHch/oEJorv2mhm7V2cE44O/kXNJG/he4A3eyrnIF8FQ5GG7WflAS4fwacuXhe1bj du0x+kqV/IUJBLvdEW2VDAGmWV02zSuQew91ZMVt2YukAG9MVl9a6GNSNgiBqesOfMrBPCYGQw3W tRMpdwDvGYsJISbzg7DbHt8AfrC24kBfombnIvsxMEZ02eyuPgLwmw1SumeZ4skHiElMZuRYru3P Jd/j8Dl+k2SmmD2aggTPkXsCFqaMZHVFbCdTHTTF+0TAVpPZpjYzFs+YYZvyI79u7dUjwNPGri++ sCrO6g96LVMPUGCfd4sCN/D52zGh20+nXDp4ODD2vChmLPj5osUIoLCJ+4FkwiSCywFeGHv8s7ob GnKacDujhQlCcGnuIgw5T44DwA3nGp1oowUXx+sAywPeLT4VIwQVx2aAVcFIEJiECxG2sG9hMscH pYUtGuq1OqkOlghundNQ4AzlW8HU2AS+KO7Ygk/AgyGBm81b8Hdl/2+m3RSPHJw6eFtVB4xgoJ1x 6lpBVbeniDyoHqpzguu08ZCrv1oLyRlrWyYBAAAAAElFTkSuQmCC
- Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAHlBMVEWMXkPrtom/n4zsvKHs lnf9uI4kHxfw3tW9ZzZeNCv6bSC/AAACXUlEQVQ4jU2TT2+bQBDFR1Hlwi0koF7xJlKdY9hSX0u1 lrgiZ78CEreoHLhSi8P2turB6n7bvpnFdkYIy++38+cNQNM1xm/bh1mpnXNz4ha6Aa1Umag7AEe4 rue1KokoHc69d/MHMFUqhd4jhoSSlq51Skop9H0494Eo2dFFTwPi3KNS7wFOdC0TYvRDuIGxUhSG QKknVqHPAsaqlCIe3csZoyIYjKo88zDhrlTwd1Ju5xSPW6WsD3SnYuxOP58NwBjP/61UtRXdnYwx LWm1Yd2rCiIxcW4BoYrNeuLDRIESZ9pZwD07QvkSs7IXIHIM/mAcStTM3jg1+MS1C3rAabLMvFSJ IYTEodzCVt2P88Dkez94IAioBfvOpcGfv770m94/bQRwD/YfhtRPLzwFdoZShsHSOt745+k98GGf oqUAg4Tg/Zfp12aQzUZ/ADxo+m/cT+9ww5VZNg1xJR9+Z9WTUvefuKMpcs5oHV6BZCZ5PtgqZxS2 Y4AXTIoTYanQmwxXhqKH1nlKSKZsYwcQWszhTV5K6Sq3pst4KvP41rqZx3QotKBKYW1mKDfHN+PW V0D0zCIyenh+7HK3BgbKjICOtq+ZNutx9Myzpui07TLKOMzavMksu9BaryA3kmAse7YRNDwEnHIU AI09ag4Au0ZhG4uRog4gotYXbPUKTPxTX3Qk7KG/Cij0LUPvx+kGjlZfC/H3JcBEoV71vXzBGHcF xw8Jk/gwh6jIvT7q+M3zSoo4y2Um0Xm7l6a1JOmRG8jzuIBY7cgmagHXjdx817bLAVaCn/xQF7wp Wel/crNinEL7WwcAAAAASUVORK5CYII=
- Mail-copies-to: never
Hello,
I know how to create an application and instruct the system about a
custom type and its use by using both CFBundleDocumentTypes and
UTExportedTypeDeclarations in Info.plist.
My problem: this type is not actually defined and used by an
application, but by a preference pane. It seems that putting the proper
entries in the preference pane's Info.plist doesn't work (or am I
missing something ?).
A possible solution I would like to avoid: make my preference pane
scriptable and write a helper application, that defines the type and
opens 'System Preferences' with the correct pane, and then do the dirt
work.
So I'm thinking: it must be possible to do the equivalent of using
CFBundleDocumentTypes and UTExportedTypeDeclarations programmatically in
my preference pane itself right ? That way, the first time the
preference pane is opened, my custom time will be "registered" (but:
would that be persistent across sessions ?). Can anyone provide some
sample code that would do something like that ? I know some Cocoa, but I
fear that's lower level, and CF is still black magick to me.
Thank you !
_______________________________________________
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