Re: reading preferences from com.apple.mail under 10.8

2012-08-02 Thread Shane Stanley
On 01/08/2012, at 1:07 AM, Rob McBroom wrote: > Mail is, but so is TextEdit and I have no problem reading its prefs. Are you sure you have no problem with TextEdit? It looks like when Mail moves its prefs to its container it deletes the old file, but TextEdit leaves its old one there. You may

guidelines for icon design, that works well with Apple standard highlighting scheme

2012-08-02 Thread Motti Shneor
Hi everyone. In our application we employ tables showing little icons in the columns (and column headers). We have good graphic designers, and a solid graphic style the application follows. However, with some user-preferences for Highlight color (blue for example), selecting a table row makes

Localization issue with ES-MX

2012-08-02 Thread Arjun SM
Hi all, I am having some trouble supporting ES-MX language as language falls back to Spanish when I boot my machine in "Espanol Latinoamerica", any help is appreciated. *Details *: I have made provisions for both the language's by creating separate ES-MX.lproj and Spanish.lproj. Although I h

Re: reading preferences from com.apple.mail under 10.8

2012-08-02 Thread Rob McBroom
On Aug 2, 2012, at 1:44 AM, Jens Alfke wrote: > On Jul 31, 2012, at 8:07 AM, Rob McBroom wrote: > >> Hello. I’m trying to read Mail’s preferences to find a suitable SMTP server >> so users don’t have to re-enter such configuration details. It seems to have >> stopped working and I can’t find

Re: reading preferences from com.apple.mail under 10.8

2012-08-02 Thread Rob McBroom
On Aug 2, 2012, at 3:07 AM, Shane Stanley wrote: > On 01/08/2012, at 1:07 AM, Rob McBroom wrote: > >> Mail is, but so is TextEdit and I have no problem reading its prefs. > > Are you sure you have no problem with TextEdit? It looks like when Mail moves > its prefs to its container it deletes

Re: guidelines for icon design, that works well with Apple standard highlighting scheme

2012-08-02 Thread Andreas Mayer
Am 02.08.2012 um 10:58 schrieb Motti Shneor : > I remember reading once, in an apple document, about "the right way" to make > an icon, that will enjoy apple-highlighting, by keeping some rules on the > icon images. Template Images? https://developer.apple.com/library/mac/documentation/Cocoa

Re: I2C question - what is correct mailing list

2012-08-02 Thread Fritz Anderson
On 27 Jul 2012, at 6:08 AM, Vitaly Bondar wrote: > This is question to cocoa-dev moderators. I had asked twice question about > IOKit/i2c interface, but this messages was blocked as i understand. > Can you please help to find correct mailing list for my question. One's first posting to this lis

Re: I2C question - what is correct mailing list

2012-08-02 Thread Sean McBride
On Fri, 27 Jul 2012 14:08:14 +0300, Vitaly Bondar said: > This is question to cocoa-dev moderators. I had asked twice question >about IOKit/i2c interface, but this messages was blocked as i understand. >Can you please help to find correct mailing list for my question. One of the Darwin lists wo

Re: reading preferences from com.apple.mail under 10.8

2012-08-02 Thread Sean McBride
On Thu, 2 Aug 2012 08:47:27 -0400, Rob McBroom said: >So maybe you can’t read the prefs from a sandboxed application? That would seem to fit with the whole idea of a sandbox, wouldn't it? It would probably work if you give yourself a temporary entitlement to Mail's pref file. I would try that

Re: reading preferences from com.apple.mail under 10.8

2012-08-02 Thread Kyle Sluder
On Aug 2, 2012, at 9:01 AM, Sean McBride wrote: > On Thu, 2 Aug 2012 08:47:27 -0400, Rob McBroom said: > >> So maybe you can’t read the prefs from a sandboxed application? > > That would seem to fit with the whole idea of a sandbox, wouldn't it? The point is that *Mail* is the sandboxed app he

Re: What is the equivalent Cocoa window level of Carbon kUtilityWindowClass?

2012-08-02 Thread Ken Thomases
On Jul 19, 2012, at 3:47 PM, Volker Schumacher wrote: > I am working on a cocoa application that creates both normal cocoa windows > and cocoa windows that are initialized with carbon windows. All windows > should be floating above all applications. For the cocoa windows i set the > window leve

Rotating a Nib

2012-08-02 Thread Gerriet M. Denkmann
I have an iOS (5.1) program which has a view with some OpenGL animations, called GLView (subclass of UIView). When the user taps the screen, a Nib view is loaded (which contains some sliders and buttons). On the iPhone this nib is always displayed in portrait mode. This is ok. But on the iPad,

Resolved: Baffled by AVCaptureVideoPreviewLayer

2012-08-02 Thread lobs...@neu.edu
Found the problem movieLayer = [[self mMovieView] layer]; must be preceeded by [[self mMovieView] setWantsLayer:Yes] Joseph On Aug 1, 2012, at 6:05 PM, lobs...@neu.edu wrote: > I'm having trouble getting AVCaptureVideoPreviewLayer to work in OSX 10.8, > XCode 4.4 .

Re: cocoabuilder closed?

2012-08-02 Thread Robert Monaghan
Hi, I just took a look. It seems to have a fairly current bunch of email from today. bob. On Jul 10, 2012, at 8:47 PM, Andy Lee wrote: > I can get to the site but it doesn't seem to have been updated since June 25. > > --Andy > > On Jul 10, 2012, at 2:35 PM, Richard Altenburg (Brainchild) wr

32-bit on 10.8

2012-08-02 Thread koko
I have a number of BSD Static Libraries that support my application. These are 'iffy' on 64-bit compatibility due to the effort required to get them there. If I build a 32-bit app to run on 10.8 does this present any problems/resource issues to the users machine? -koko _

Re: reading preferences from com.apple.mail under 10.8

2012-08-02 Thread Mike Abdullah
On 2 Aug 2012, at 13:47, Rob McBroom wrote: > On Aug 2, 2012, at 3:07 AM, Shane Stanley wrote: > >> On 01/08/2012, at 1:07 AM, Rob McBroom wrote: >> >>> Mail is, but so is TextEdit and I have no problem reading its prefs. >> >> Are you sure you have no problem with TextEdit? It looks like w

Re: 32-bit on 10.8

2012-08-02 Thread Marcus Karlsson
On Aug 2, 2012, at 8:11 PM, koko wrote: > I have a number of BSD Static Libraries that support my application. These > are 'iffy' on 64-bit compatibility due to the effort required to get them > there. > > If I build a 32-bit app to run on 10.8 does this present any > problems/resource issu

Re: 32-bit on 10.8

2012-08-02 Thread koko
Thanks. I asked the question because I saw here one time that "you don't want to be the app causing 32-bit versions" to load. As long as it is not a system resource problem, then all is well as far as I am concerned. However, I will be surprised if there is not some list castigation for bein

Re: reading preferences from com.apple.mail under 10.8

2012-08-02 Thread Jens Alfke
On Aug 2, 2012, at 5:19 AM, Rob McBroom wrote: > And I question whether Scripting Bridge is “more supported” than > `NSUserDefaults`. :-) Those are both supported APIs, but that's irrelevant. The point is that an application's scripting API (as declared in its dictionary) is supported, where

Re: 32-bit on 10.8

2012-08-02 Thread Charles Srstka
On Aug 2, 2012, at 1:57 PM, koko wrote: > Thanks. > > I asked the question because I saw here one time that "you don't want to be > the app causing 32-bit versions" to load. > > As long as it is not a system resource problem, then all is well as far as I > am concerned. > > However, I will

Re: 32-bit on 10.8

2012-08-02 Thread koko
On Aug 2, 2012, at 1:29 PM, Charles Srstka wrote: > I'd probably recommend moving toward 64-bit now, for the sake of future > compatibility. Yes, I agree. We just don't want to miss 10.8 customers as we move our libs to 64-bit. -koko ___ Cocoa-dev

Re: Icon Overlay on Mac OSX

2012-08-02 Thread Uli Kusterer
On 02.08.2012, at 07:47, Jens Alfke wrote: > Set custom icons for the files? (I have no idea how custom file icons are > done nowadays, though. They used to be stored in the resource fork, but > that's been deprecated for a decade now. Maybe they're in extended file > attributes?) NSWorkspace

Re: reading preferences from com.apple.mail under 10.8

2012-08-02 Thread Erik Stainsby
Would it not be more in keeping with sandbox culture to ask the user for permission to read the Mail.app preferences at run time? Thereby obviating the need to maintain a supported under the hood path to the same info. It could be a single request made once during first run. ~ Erik Sent from

Re: Icon Overlay on Mac OSX

2012-08-02 Thread KappA
I believe setIcon updates the file modification date... (please check as I can't remember for sure)... which might go against what a file tracking system might be trying to do. i.e. will give false file modification updates because of setting the updated icons. If there is a way to do that withou

Re: reading preferences from com.apple.mail under 10.8

2012-08-02 Thread Charles Srstka
On Jul 31, 2012, at 10:07 AM, Rob McBroom wrote: > Hello. I’m trying to read Mail’s preferences to find a suitable SMTP server > so users don’t have to re-enter such configuration details. It seems to have > stopped working and I can’t find a [documented] reason. > > I’ve tried > >NSUserD

Re: Icon Overlay on Mac OSX

2012-08-02 Thread Charles Srstka
On Aug 2, 2012, at 3:41 PM, KappA wrote: > I believe setIcon updates the file modification date... (please check as I > can't remember for sure)... which might go against what a file tracking > system might be trying to do. > > i.e. will give false file modification updates because of setting th

Re: 32-bit on 10.8

2012-08-02 Thread Eric Wing
On 8/2/12, koko wrote: > Thanks. > > I asked the question because I saw here one time that "you don't want to be > the app causing 32-bit versions" to load. > > As long as it is not a system resource problem, then all is well as far as I > am concerned. It depends on how much you need to pull in.

"sticky" buttons in UIToolbar?

2012-08-02 Thread Rick Mann
Hi. I'd like to have a set of sticky buttons in my toolbar. That is, a tap on the button changes its appearance. I can do this with custom buttons, but then I have to do a bunch of work designing buttons in Photoshop, when really the standard button looks just fine. I set the button's selected p

Re: "sticky" buttons in UIToolbar?

2012-08-02 Thread Graham Cox
On 03/08/2012, at 9:23 AM, Rick Mann wrote: > Is there another way? NSSegmentedControl? --Graham ___ 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

Re: "sticky" buttons in UIToolbar?

2012-08-02 Thread Rick Mann
Yep, great suggestion, I think that'll work just fine. I do wish, though, that Apple had just made toolbar buttons be UIButtons. -- Rick On Aug 2, 2012, at 17:37 , Graham Cox wrote: > > On 03/08/2012, at 9:23 AM, Rick Mann wrote: > >> Is there another way? > > > NSSegmentedControl? > >

Anybody know why instantiateNibWithOwner:topLevelObjects: was deprecated?

2012-08-02 Thread Britt Durbrow
Well... the subject line kinda says it all... before I file a bug... does anybody know why NSNib's instantiateNibWithOwner:topLevelObjects: was deprecated? ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or mod

Re: "sticky" buttons in UIToolbar?

2012-08-02 Thread Graham Cox
D'uh, I just realised I think you're talking about iOS, not Mac. There is no NSSegmentedControl on iOS. I'm not sure what options you have there, and I'm not sure I've seen any iOS app with buttons that stay on, so perhaps it can't be done. You might want to rethink your interface - or perhaps

Re: "sticky" buttons in UIToolbar?

2012-08-02 Thread Rick Mann
On Aug 2, 2012, at 17:37 , Graham Cox wrote: > > On 03/08/2012, at 9:23 AM, Rick Mann wrote: > >> Is there another way? > > > NSSegmentedControl? Perhaps I spoke too soon. I can make that work, but only by adding an additional segment that I'd rather not add. The reason is that if the user

Re: "sticky" buttons in UIToolbar?

2012-08-02 Thread Rick Mann
There's UISegmentedControl! -- Rick On Aug 2, 2012, at 17:52 , Graham Cox wrote: > D'uh, I just realised I think you're talking about iOS, not Mac. There is no > NSSegmentedControl on iOS. > > I'm not sure what options you have there, and I'm not sure I've seen any iOS > app with buttons

Re: Anybody know why instantiateNibWithOwner:topLevelObjects: was deprecated?

2012-08-02 Thread Charles Srstka
On Aug 2, 2012, at 7:52 PM, Britt Durbrow wrote: > Well... the subject line kinda says it all... before I file a bug... does > anybody know why NSNib's instantiateNibWithOwner:topLevelObjects: was > deprecated? Probably because it didn't follow the usual Cocoa memory management pattern, in a

Re: Anybody know why instantiateNibWithOwner:topLevelObjects: was deprecated?

2012-08-02 Thread Kyle Sluder
On Thu, Aug 2, 2012, at 05:52 PM, Britt Durbrow wrote: > Well... the subject line kinda says it all... before I file a bug... does > anybody know why NSNib's instantiateNibWithOwner:topLevelObjects: was > deprecated? Because there's better API now: -[NSNib instantiateWithOwner:topLevelObjects:] ad

Re: "sticky" buttons in UIToolbar?

2012-08-02 Thread Laurent Daudelin
There is no NSSegmentedControl on iOS but there is UISegmentedControl, which is essentially the same thing, can be put in a navigation bar or a toolbar. -Laurent. -- Laurent Daudelin AIM/iChat/Skype:LaurentDaudelin http://www.nemesys-soft.com/ Logiciels Nemesys S

Re: Icon Overlay on Mac OSX

2012-08-02 Thread Alfian Busyro
I'll take a look of this. Thanks, Alfian On 12/08/02 14:55, Charles Srstka wrote: On Aug 2, 2012, at 12:47 AM, Jens Alfke wrote: On Jul 18, 2012, at 2:42 AM, Alfian Busyro wrote: I tried this CTBadge, and it gave me a custom application icon after I run it. So a little bit different with

Re: Icon Overlay on Mac OSX

2012-08-02 Thread Alfian Busyro
Which you guys mean I have to create the overlay to an Image it self then stick it to a file icon ? I'd try this before but nothing was changed. maybe I'll have try this once again. And for file attributes, can we use setAttributes:ofItemAtPath:error: from NSFileManager ? because there is NSF

Re: Icon Overlay on Mac OSX

2012-08-02 Thread Alfian Busyro
Which you guys mean I have to create the overlay to an Image it self then stick it to a file icon ? I'd try this before but nothing was changed. maybe I'll have try this once again. And for file attributes, can we use setAttributes:ofItemAtPath:error: from NSFileManager ? because there is NSF

Re: Anybody know why instantiateNibWithOwner:topLevelObjects: was deprecated?

2012-08-02 Thread Britt Durbrow
On Aug 2, 2012, at 6:10 PM, Kyle Sluder wrote: > On Thu, Aug 2, 2012, at 05:52 PM, Britt Durbrow wrote: >> Well... the subject line kinda says it all... before I file a bug... does >> anybody know why NSNib's instantiateNibWithOwner:topLevelObjects: was >> deprecated? > > Because there's better

Dragging map annotations

2012-08-02 Thread Rick Mann
It seems that MKMapView doesn't autoscroll when dragging an annotation marker, is that correct? Also, is there any way to adjust how long the user must hold the annotation before dragging can begin? -- Rick ___ Cocoa-dev mailing list (Cocoa-dev@

crash in showOpenPanel on ML

2012-08-02 Thread Koen van der Drift
After updating to M and Xcode 4.4 I get a crash in the beginSheetModalForWindow part of the showOpenPanel part. The code looks like: - (IBAction)showOpenPanel:(id)sender { __block NSOpenPanel *panel = [NSOpenPanel openPanel]; [panel setAllowedFileTypes: fileTypes]; [panel setAllowsMu

Mountain Lion problems with orderFrontColorPanel:

2012-08-02 Thread Graham Cox
Hi all, Has anyone else experienced issues with the Color Panel not showing in Mountain Lion? We're getting reports from users that our app doesn't display the color panel on ML, though we have made no changes to our sources regarding this at all. We're still using the 10.7 SDK and targetting

Re: crash in showOpenPanel on ML

2012-08-02 Thread Graham Cox
Looks like a QuickLook plug-in is not correctly code signed, or is being rejected due to your security settings, and the resulting exception is killing the panel. If you've installed a third-party QL plug-in you probably need to upgrade it for ML or discard it. --Graham On 03/08/2012, at 11

Re: Icon Overlay on Mac OSX

2012-08-02 Thread KappA
I have been playing around with that - get the attributes get the icon composite the overlay set the icon set the attributes When I print out the attributes before/after they match - now this only works for files that you have access to (it failed for a few files owned by root). I am not sure ho

Re: crash in showOpenPanel on ML

2012-08-02 Thread Koen van der Drift
On Aug 2, 2012, at 9:44 PM, Graham Cox wrote: > Looks like a QuickLook plug-in is not correctly code signed, or is being > rejected due to your security settings, and the resulting exception is > killing the panel. > > If you've installed a third-party QL plug-in you probably need to upgrade

Re: Icon Overlay on Mac OSX

2012-08-02 Thread Jens Alfke
On Aug 2, 2012, at 6:54 PM, KappA wrote: > get the attributes > get the icon > composite the overlay > set the icon > set the attributes This has an obvious race condition, but it should work most of the time. If you don't change the icon often, you should be OK. > I am not sure how this affe

Re: Anybody know why instantiateNibWithOwner:topLevelObjects: was deprecated?

2012-08-02 Thread Kyle Sluder
On Thu, Aug 2, 2012, at 06:26 PM, Britt Durbrow wrote: > Which is, (very conveniently :-) missing from the class documentation. Please do file a documentation bug! That's kind of an important method. :) --Kyle Sluder ___ Cocoa-dev mailing list (Cocoa-d

Re: Icon Overlay on Mac OSX

2012-08-02 Thread Charles Srstka
On Aug 2, 2012, at 9:26 PM, Jens Alfke wrote: > On Aug 2, 2012, at 6:54 PM, KappA wrote: > >> get the attributes >> get the icon >> composite the overlay >> set the icon >> set the attributes > > This has an obvious race condition, but it should work most of the time. If > you don't change th

Re: Icon Overlay on Mac OSX

2012-08-02 Thread KappA
Thanks. Yeah this too seems a bit messy, as you also have to take the quick look preview into consideration. (when switching the various Finder views). On Thu, Aug 2, 2012 at 10:37 PM, Charles Srstka wrote: > On Aug 2, 2012, at 9:26 PM, Jens Alfke wrote: > > On Aug 2, 2012, at 6:54 PM, KappA wr

Any way to get live updates when dragging an annotation?

2012-08-02 Thread Rick Mann
So, I've got my custom annotation view dragging nicely, but unfortunately, MKMapKit only updates the annotation's coordinate when the drag ends. I want it to update throughout the drag, so that I can update my UI (which actually goes through Core Data). Is there a way to do this? -- Rick

Re: Mountain Lion problems with orderFrontColorPanel:

2012-08-02 Thread Andreas Mayer
Am 03.08.2012 um 03:41 schrieb Graham Cox : > Has anyone else experienced issues with the Color Panel not showing in > Mountain Lion? Working fine here. In a previously compiled application as well as in a newly compiled (on ML) one. I'm not using orderFrontColorPanel: though. It's invoked by

Re: Mountain Lion problems with orderFrontColorPanel:

2012-08-02 Thread Graham Cox
On 03/08/2012, at 2:14 PM, Andreas Mayer wrote: > > Am 03.08.2012 um 03:41 schrieb Graham Cox : > >> Has anyone else experienced issues with the Color Panel not showing in >> Mountain Lion? > > Working fine here. Working fine here too... that's the problem, it's just some users who are ex

Very basic table binding blind spot

2012-08-02 Thread Erik Stainsby
I do so wish there was a Complete Idiot's Guide to Cocoa Table Bindings … The very flexibility which I know must be their great virtue tends to obscure the clear path from my sight more often than not. Forest, trees, trees, forest … Oh! Something shiny! --- So tonight I have an NSArrayContr

Re: Very basic table binding blind spot

2012-08-02 Thread Quincey Morris
(reposted because of an apparent bounce) On Aug 2, 2012, at 22:16 , Erik Stainsby wrote: > I do so wish there was a Complete Idiot's Guide to Cocoa Table Bindings … The > very flexibility which I know must be their great virtue tends to obscure the > clear path from my sight more often than no