Re: NSViewController subclass return type

2013-07-10 Thread Quincey Morris
On Jul 10, 2013, at 23:18 , dangerwillrobinsondan...@gmail.com wrote: > Is there an appropriate way to subclass NSViewController to return a custom > view class or is casting the return of view or loadView the only way? You can just re-declare the 'view' property in a subclass to have the desire

Re: NSViewController subclass return type

2013-07-10 Thread Kyle Sluder
On Jul 10, 2013, at 11:18 PM, dangerwillrobinsondan...@gmail.com wrote: > Hi all, > > Is there an appropriate way to subclass NSViewController to return a custom > view class or is casting the return of view or loadView the only way? I'm not following here. It's generally bad form to override a

NSViewController subclass return type

2013-07-10 Thread dangerwillrobinsondanger
Hi all, Is there an appropriate way to subclass NSViewController to return a custom view class or is casting the return of view or loadView the only way? Is it even worth using on OS X since there are so few built in methods? Is it more practical to just load views from nibs without NSViewContr

[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!"

Re: Can't keep disabled UIBarButtonItem text white

2013-07-10 Thread Rick Mann
On Jul 10, 2013, at 16:07 , Rick Aurbach 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:), > since IB doesn'

Re: Can't keep disabled UIBarButtonItem text white

2013-07-10 Thread Luther Baker
http://stackoverflow.com/questions/4016554/can-you-create-a-uibarbuttonitem-with-a-custom-view-in-interface-builder On Wed, Jul 10, 2013 at 5:53 PM, Rick Mann wrote: > I'm building it in IB. > > On Jul 10, 2013, at 15:46 , Luther Baker wrote: > > > Which constructor are you using? > > > > > >

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 guess

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 wrote: > Which constructor are you using? > > > http://developer.apple.com/library/ios/#documentation/uikit/reference/UIBarButtonItem_Class/Reference/Reference.html > > - > (id)initWithCustomView:(UIView

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 - (id)initWithCustomView:(UIView

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 wrote:

Re: Can't keep disabled UIBarButtonItem text white

2013-07-10 Thread Rick Mann
On Jul 10, 2013, at 08:28 , Rick Aurbach 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 > whether your UI go

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: 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" 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 base > (using a subclass

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 09:58 , Uli Kusterer 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 irrelevant symbols > (which

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: 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, X

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 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, regex, symbol defi

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 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 Xcode's debugger, or

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. >

Re: Bundle Identifiers - and application support directory

2013-07-10 Thread Quincey Morris
On Jul 10, 2013, at 08:43 , Scott Ribe 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\ Support, so > as you can se

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] : 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 (Cocoa-dev@

Re: Bundle Identifiers - and application support directory

2013-07-10 Thread Mike Abdullah
On 10 Jul 2013, at 15:43, Scott Ribe wrote: > On Jul 10, 2013, at 8:27 AM, Mike Abdullah wrote: > >> On 10 Jul 2013, at 15:01, Peter Hudson wrote: >> >>> Now I can set an ID, the docs suggest the format >>> com.companyDomainName.appName for the directory name in Application >>> Suppo

Re: Bundle Identifiers - and application support directory

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

Re: Bundle Identifiers - and application support directory

2013-07-10 Thread Giacomo Tufano
Il giorno 10/lug/2013, alle ore 17:43, Scott Ribe 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 applications) so I deduce the

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 g

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 b

Re: Bundle Identifiers - and application support directory

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

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 wrote: > On Jul 10, 2013, at 8:58 AM, Peter Hudson wrote: > >> Bearing in mind tha

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 hold

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 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 thi

Re: Bundle Identifiers - and application support directory

2013-07-10 Thread Mike Abdullah
On 10 Jul 2013, at 15:01, Peter Hudson 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 notice that very

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 j

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 r

Re: Bundle Identifiers - and application support directory

2013-07-10 Thread Mike Abdullah
On 10 Jul 2013, at 11:25, Peter Hudson 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]; >NSFileManager*fm = [NS

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) {

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;

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 = [

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 t