Can't keep disabled UIBarButtonItem text white

2013-07-10 Thread Rick Mann
I have some UIBarButtonItems in a toolbar showing some app status. They're disabled, because there's no action if you tap, but I want them to appear white, so I set the disabled color to white. One of these, and some other image items (that are also disabled) are hidden and shown depending on

Dynamically change file name extension in NSSavePanel when extension is hidden

2013-07-10 Thread Antonio Nunes
Hi, I show an NSSavePanel that offers the option to hide the file extension. It also offers the user to switch between saving .txt and .rtf formats. When the user changes the format, the following code is run: - (IBAction)formatForTextExportChanged:(id)sender { self.textExportFormat =

Bundle Identifiers - and application support directory

2013-07-10 Thread Peter Hudson
I am trying to create an application support directory for my app ( on 10.8.3 ) I am using this piece of example code ( from the docs ) :- NSString* bundleID = [[NSBundle mainBundle] bundleIdentifier]; NSFileManager*fm = [NSFileManager defaultManager]; NSURL*dirPath = nil;

Re: Dynamically change file name extension in NSSavePanel when extension is hidden

2013-07-10 Thread Antonio Nunes
Looks like I've found a workaround: - (IBAction)formatForTextExportChanged:(id)sender { self.textExportFormat = [sender indexOfSelectedItem]; NSString *path = self.currentSavePanel.nameFieldStringValue.stringByDeletingPathExtension; switch (self.textExportFormat) {

Re: Bundle Identifiers - and application support directory

2013-07-10 Thread Mike Abdullah
On 10 Jul 2013, at 11:25, Peter Hudson peter.hud...@me.com wrote: I am trying to create an application support directory for my app ( on 10.8.3 ) I am using this piece of example code ( from the docs ) :- NSString* bundleID = [[NSBundle mainBundle] bundleIdentifier];

How to prevent UITableView from scrolling when inserting in CoreData?

2013-07-10 Thread Laurent Daudelin
Hello. I have a UITableView and a NSFetchedResultsController. I’ve implemented to NSFetchedResultsController delegate methods in my custom controller object. The problem I have is when I receive data from the server and store it in the CoreData database, if the current sort makes the inserted

Re: Bundle Identifiers - and application support directory

2013-07-10 Thread Peter Hudson
Thanks Mike. I have now set an ID for my bundle and it is feeding through happily. Now I can set an ID, the docs suggest the format com.companyDomainName.appName for the directory name in Application Support. I notice that very few other applications use this format - they tend to use

Re: Bundle Identifiers - and application support directory

2013-07-10 Thread Mike Abdullah
On 10 Jul 2013, at 15:01, Peter Hudson peter.hud...@me.com wrote: Thanks Mike. I have now set an ID for my bundle and it is feeding through happily. Now I can set an ID, the docs suggest the format com.companyDomainName.appName for the directory name in Application Support. I

Re: Bundle Identifiers - and application support directory

2013-07-10 Thread Scott Ribe
On Jul 10, 2013, at 8:27 AM, Mike Abdullah wrote: On 10 Jul 2013, at 15:01, Peter Hudson peter.hud...@me.com wrote: Now I can set an ID, the docs suggest the format com.companyDomainName.appName for the directory name in Application Support. I notice that very few other

Re: Bundle Identifiers - and application support directory

2013-07-10 Thread Scott Ribe
On Jul 10, 2013, at 8:58 AM, Peter Hudson wrote: Bearing in mind that we do not sell on the app store ( and its unlikely we ever will ) does anyone know the rationale behind the documented way of specifying the directory name and the obvious disparity with real life ? No. Maybe a

Re: Bundle Identifiers - and application support directory

2013-07-10 Thread Peter Hudson
Thanks Scott. That opens up some interesting possibilities for managing the development of the app going forward. As you say, shame Apple sets such a sloppy example. Peter On 10 Jul 2013, at 16:04, Scott Ribe scott_r...@elevated-dev.com wrote: On Jul 10, 2013, at 8:58 AM, Peter Hudson

Re: Bundle Identifiers - and application support directory

2013-07-10 Thread Giacomo Tufano
Il giorno 10/lug/2013, alle ore 16:43, Scott Ribe scott_r...@elevated-dev.com ha scritto: Nope, not even close. Here's mine for reference: 1Password DMG Canvas Logitech Remote Desktop TurboTax […] Scott, my

Re: Can't keep disabled UIBarButtonItem text white

2013-07-10 Thread Rick Aurbach
Rick, I haven't tried this, so I don't know whether it will work, but… have you tried leaving the buttons enabled but disabling user interaction for them? Of course, if that works then it leaves open the larger question of whether your UI goals are best served by displaying buttons that can't

Re: Bundle Identifiers - and application support directory

2013-07-10 Thread Scott Ribe
On Jul 10, 2013, at 9:26 AM, Giacomo Tufano wrote: Scott, my observations do not agree with yours… I get BundleIDs for apps from an app of mine via the NSRunningApplication bundleIdentifier property and, to be honest, I ever get correctly formed bundle identifiers. As example I get,

Re: Bundle Identifiers - and application support directory

2013-07-10 Thread Giacomo Tufano
Il giorno 10/lug/2013, alle ore 17:43, Scott Ribe scott_r...@elevated-dev.com ha scritto: On Jul 10, 2013, at 9:26 AM, Giacomo Tufano wrote: Scott, my observations do not agree with yours… I *think* this property comes from the bundle id (at least, it comes from bundle id for my

Re: Bundle Identifiers - and application support directory

2013-07-10 Thread Steve Mills
On Jul 10, 2013, at 10:26:22, Giacomo Tufano g...@iltofa.com wrote: Il giorno 10/lug/2013, alle ore 16:43, Scott Ribe scott_r...@elevated-dev.com ha scritto: Nope, not even close. Here's mine for reference: 1PasswordDMG Canvas Logitech

Re: Bundle Identifiers - and application support directory

2013-07-10 Thread Mike Abdullah
On 10 Jul 2013, at 15:43, Scott Ribe scott_r...@elevated-dev.com wrote: On Jul 10, 2013, at 8:27 AM, Mike Abdullah wrote: On 10 Jul 2013, at 15:01, Peter Hudson peter.hud...@me.com wrote: Now I can set an ID, the docs suggest the format com.companyDomainName.appName for the

mobile_house_arrest

2013-07-10 Thread koko
My iPad App starts up and I get this message in the Console numerous times: mobile_house_arrest[6942] Error: Max open files: 78 But, I have opened no files. So is this a valid message or some errant iOS thing? -koko ___ Cocoa-dev mailing list

Re: Bundle Identifiers - and application support directory

2013-07-10 Thread Quincey Morris
On Jul 10, 2013, at 08:43 , Scott Ribe scott_r...@elevated-dev.com wrote: The convention that we're talking about is that the apps' directories in Application Support should be named by bundle identifier, not by application name. The list that I provided was the result of ls Application\

Re: Bundle Identifiers - and application support directory

2013-07-10 Thread Seth Willits
On Jul 10, 2013, at 7:01 AM, Peter Hudson wrote: Now I can set an ID, the docs suggest the format com.companyDomainName.appName for the directory name in Application Support. I notice that very few other applications use this format - they tend to use just the name of the app. Is

Re: Unrecognized selector in release build, not in debug build

2013-07-10 Thread Uli Kusterer
On Jul 10, 2013, at 4:01 AM, Rick Mann rm...@latencyzero.com wrote: Yes, I'm aware. That's everything Xcode shows; that's the full stack. I had hoped breaking on that message would break at the point of the send, not at the point of handling the unrecognized selector. Is this backtrace in

Re: Unrecognized selector in release build, not in debug build

2013-07-10 Thread Uli Kusterer
On Jul 10, 2013, at 6:04 AM, Rick Mann rm...@latencyzero.com wrote: First, Xcode's project-wide search is returning only one instance of remove for a Textual-contain-search-term-case-insensitive search. Grep returns hundreds. You've probably set the search options wrong. There's textual,

Re: NSOutlineViews and Mountain Lion

2013-07-10 Thread Alex Zavatone
Thanks Eddy, though I recall it being introduced in Mountain Lion, though I could be wrong on that. Thanks much for finding that in the docs, I wasn't able to find anything. With this information, do you know if it would be at all possible to use this to disable the animations in the Finder,

NSSortDescriptor for A -- B -- C relationships

2013-07-10 Thread Devarshi Kulshreshtha
I am trying to initialize a NSFetchedResultsController. In the data model I have 3 entities related to each other like this: A -- B -- C Entity 'A' has a property 'name' and entity 'C' has property 'someDate'. I want to get all managedObjects belonging to entity 'A', sorted in below order,

Re: Unrecognized selector in release build, not in debug build

2013-07-10 Thread Rick Mann
On Jul 10, 2013, at 09:58 , Uli Kusterer witness.of.teacht...@gmx.net wrote: Is this backtrace in Xcode's debugger, or in a log file? If the former, have you tried moving the slider at the bottom of the window? It sometimes gets changed accidentally and then tries to be smart and remove

Re: Unrecognized selector in release build, not in debug build

2013-07-10 Thread Gary L. Wade
Is it possible you've got an array controller (or other related object) that got over-released and a pointer for it is now pointing at something else? Or maybe you were converting from a pre-NSObjectController code base (using a subclass of NSObject like in the old days) to NSObjectController or

Re: Unrecognized selector in release build, not in debug build

2013-07-10 Thread Rick Mann
On Jul 10, 2013, at 12:53 , Gary L. Wade garyw...@desisoftsystems.com wrote: Is it possible you've got an array controller (or other related object) that got over-released and a pointer for it is now pointing at something else? Or maybe you were converting from a pre-NSObjectController code

MODERATOR NOTE: Re: NSOutlineViews and Mountain Lion

2013-07-10 Thread Chris Hanson
There is no supported way to disable the various controls' animations on a system-wide basis. *** Any discussion of unsupported/reverse-engineered ways to do so (or to do anything else) is against the list rules, and therefore should not take place on the list. *** Furthermore, requests for a

Re: Can't keep disabled UIBarButtonItem text white

2013-07-10 Thread Rick Mann
On Jul 10, 2013, at 08:28 , Rick Aurbach r...@aurbach.com wrote: I haven't tried this, so I don't know whether it will work, but… have you tried leaving the buttons enabled but disabling user interaction for them? Of course, if that works then it leaves open the larger question of

Re: MODERATOR NOTE: Re: NSOutlineViews and Mountain Lion

2013-07-10 Thread Alex Zavatone
But Chris, how do I know if it is unsupported, unless I ask for a solution or try to find one? I'm looking for a solution to disable a behaviour I find a usability regression I don't want to get slammed for looking. How to I know if I don't ask? On Jul 10, 2013, at 4:12 PM, Chris Hanson

Re: Can't keep disabled UIBarButtonItem text white

2013-07-10 Thread Luther Baker
Which constructor are you using? http://developer.apple.com/library/ios/#documentation/uikit/reference/UIBarButtonItem_Class/Reference/Reference.html -

Re: Can't keep disabled UIBarButtonItem text white

2013-07-10 Thread Rick Mann
I'm building it in IB. On Jul 10, 2013, at 15:46 , Luther Baker lutherba...@gmail.com wrote: Which constructor are you using? http://developer.apple.com/library/ios/#documentation/uikit/reference/UIBarButtonItem_Class/Reference/Reference.html -

Re: Can't keep disabled UIBarButtonItem text white

2013-07-10 Thread Rick Aurbach
Well, since a UIBarButtonItem is a UIBarItem, you might try explicitly using the UIBarItem method setTitleTextAttributes:forState:, specifying the disabled state. (You'll need to do this in code (such as viewWillAppear:), since IB doesn't disclose the information. I'm guessing here, but my

Re: Can't keep disabled UIBarButtonItem text white

2013-07-10 Thread Rick Mann
On Jul 10, 2013, at 16:07 , Rick Aurbach r...@aurbach.com wrote: Well, since a UIBarButtonItem is a UIBarItem, you might try explicitly using the UIBarItem method setTitleTextAttributes:forState:, specifying the disabled state. (You'll need to do this in code (such as viewWillAppear:),

[MEET] CocoaHeadsNYC this Thursday

2013-07-10 Thread Andy Lee
When: Thursday, July 11, 2013, 6:30-7:45PM, followed by dinner at Spice, at 8th and 22nd (*not* the other Spice nearby). What: Our guest Michele Titolo has kindly volunteered to give a talk entitled Mastering the Project File: Do you frequently hear yourself say Don't touch the project file!,