Re: Totally baffled by Xcode 4

2011-08-12 Thread Bill Cheeseman
On Aug 12, 2011, at 1:26 AM, Graham Cox wrote: Looked to me like the new workspace feature was a good idea - I can add all these related projects to the one workspace and have the framework built and kept up to date for any one of them. Xcode 4 claims that these interdependencies tare

RE: Application crashes after launching Open/Save dialogs

2011-08-12 Thread Michael Domino
Sanyam, FYI, I had a similar problem with an accessory view that was crashing until I added this line: [dirDlg setAccessoryView:nil]; // On Snow Leopard, we need to do this or we will subsequently crash. -Michael Domino Michael Domino | Identity Finder, LLC 250 West 57th St; Suite 2412

core data, boolean attribute, and dynamic

2011-08-12 Thread Martin Hewitson
Dear list, In an app I have a core data model which has a File entity which has a boolean attribute isText. This attribute is declared in the corresponding NSManagedObject subclass interface as @property (assign) BOOL isText; and in the implementation I do @dynamic isText; In Lion,

clipping and scrolling

2011-08-12 Thread Torsten Curdt
Hey folks, On the Mac we have NSClipView (and NSScrollView). On iOS we have UIScrollView and yet sometimes I wondering why. Let me explain: For an iOS project I have an image that does not fit on the screen. I need to be able to show a portion of it to the user. There are couple of ways to

Underlining text

2011-08-12 Thread patrick machielse
I'm underlining some text using NSMutableString's NSUnderlineStyleAttributeName attribute (on 10.7). However, the results aren't quite right. There seem to be 2 separate issues: - The underline seems to stop 1 or 2 pixels short of the end of the underlined text. - If the text has a

Re: Underlining text

2011-08-12 Thread Jens Alfke
On Aug 12, 2011, at 4:56 AM, patrick machielse wrote: - The underline seems to stop 1 or 2 pixels short of the end of the underlined text. The underline is most likely being drawn to the end of the last character’s advance, which isn’t necessarily the same as the optical right margin of the

Grooveshark

2011-08-12 Thread Eric E. Dolecki
I am looking for a sample project or a bit of code for iOS that allows for searching Grooveshark. Stubs for the credentials perfect as I would supply my own. I've spent some time looking for an Objective-C implementation and haven't found a foothold yet.

Re: drop folders on dock

2011-08-12 Thread Fritz Anderson
On 12 Aug 2011, at 12:29 AM, Wilker wrote: I'm trying to accept folder drops on dock icon, but I can't find how to do it... I'm already receiving some file types (I just had to declare them on Document Types), but I can't find where I configure it for accepting folders too... I have a

NSPasteboardItem kPasteboardTypeFileURLPromise

2011-08-12 Thread Gabriele de Simone
Hi everyone, I am trying to implement promise type file drags from my app to the Finder using the new, 10.6-and-later NSPasteboardItem APIs. I found almost no information about it, and it didn't seem to make sense. It starts in the outlineView:writeItems:toPasteboard: method of my

Re: core data, boolean attribute, and dynamic

2011-08-12 Thread Quincey Morris
On Aug 12, 2011, at 04:08 , Martin Hewitson wrote: In an app I have a core data model which has a File entity which has a boolean attribute isText. This attribute is declared in the corresponding NSManagedObject subclass interface as @property (assign) BOOL isText; and in the

NSPopover and interface ideas

2011-08-12 Thread Andre Masse
Hi, I have a master/detail view for a list of contacts. The most frequent use case is: perform a search, if the contact is found, enter secondary data (other than name, address etc), if not, enter contact's primary and secondary data. No problem here, as this is fairly common database data

Re: clipping and scrolling

2011-08-12 Thread Fritz Anderson
On 12 Aug 2011, at 6:27 AM, Torsten Curdt wrote: When I change the origin of view I assume the system is smart enough to copy content over. So what could be a reason to use UIScrollView (or NSClipView on Mac) for this? I assume 3) should be the worst option as it redraws the complete content.

Re: core data, boolean attribute, and dynamic

2011-08-12 Thread Martin Hewitson
On Aug 12, 2011, at 06:57 PM, Quincey Morris wrote: On Aug 12, 2011, at 04:08 , Martin Hewitson wrote: In an app I have a core data model which has a File entity which has a boolean attribute isText. This attribute is declared in the corresponding NSManagedObject subclass interface as

Re: migration to 10.6 SDK, loadNib problems

2011-08-12 Thread Philip White
On Aug 11, 2011, at 6:26 PM, cocoa-dev-requ...@lists.apple.com wrote: Hello, I'm migrating my apps to the App Store and my projects to Xcode 4 and the 10.6 SDK. Now my app is crashing when I try to load the window nib that contains my preferences window. I'm getting infinite recursion as

Re: File Copy With Progress?

2011-08-12 Thread Todd Freese
That is what I figured. So odd, you would like that something as simple as a file copy with a progress bar would be a highly requested feature... :-) Todd On Aug 11, 2011, at 7:06 PM, Gary L. Wade wrote: Not that I've found, and since that API leaked memory from 10.6 to 10.6.6 (fixed in

Re: File Copy With Progress?

2011-08-12 Thread Charles Srstka
You could use the copyfile() API. It’s not Cocoa, but it might be a little cleaner than FSCopyObjectAsync. Charles On Aug 12, 2011, at 4:12 PM, Todd Freese wrote: That is what I figured. So odd, you would like that something as simple as a file copy with a progress bar would be a highly

Follow-up on localizing Keychain names

2011-08-12 Thread Sean Leonard
*Bump* Just following up to see if anybody knows the answer to my question. Anybody? Howdy folks, I am looking to add a new Keychain for an app that I am building. I noticed that in Keychain Access and in the system dialog boxes, the three special keychains login, System, and System

Core Animation for Dummies?

2011-08-12 Thread Izak van Langevelde
I cannot possibly get Core Animation to work, while I did play with it in the past to get some simple things animated. I reduced my problem to a simple window fade: - (BOOL)windowShouldClose:(id)window{ [self.window.animator setAlphaValue:0.0]; return NO; } The relevant view has its

Properly wrapping non-contiguous NSTextViews

2011-08-12 Thread Nick Zitzmann
I've got a problem that has been driving me nuts all day. I tried searching around and didn't see anything that helped. I have a series of non-contiguous NSTextViews (not to be confused with non-contiguous NSLayoutManager layout), with each text view representing a single page, and each text

Re: Core Animation for Dummies?

2011-08-12 Thread Jens Alfke
On Aug 12, 2011, at 3:19 PM, Izak van Langevelde wrote: - (BOOL)windowShouldClose:(id)window{ [self.window.animator setAlphaValue:0.0]; return NO; } The relevant view has its Core Animation Layer, as checked in X-Code, the above code is executed when I try to close a window,

Re: Follow-up on localizing Keychain names

2011-08-12 Thread Greg Guerin
Sean Leonard wrote: Does anybody know how the display names for these keychains are localized, and how I can use this behavior for another keychain? What have you tried? Maybe it's the same way other file-system names are localized:

Re: migration to 10.6 SDK, loadNib problems

2011-08-12 Thread Kyle Sluder
On Fri, Aug 12, 2011 at 1:32 PM, Philip White philipwh...@mac.com wrote: This used to work just fine and I thought this was the standard way of connecting NSToolbars with NSTabViews. Must I connect this binding programmatically after the window loads? Standard approach is to bind both items

Re: Core Animation for Dummies?

2011-08-12 Thread Izak van Langevelde
On 2011-08-12, at 6:40 PM, Jens Alfke wrote: On Aug 12, 2011, at 3:19 PM, Izak van Langevelde wrote: - (BOOL)windowShouldClose:(id)window{ [self.window.animator setAlphaValue:0.0]; return NO; } The relevant view has its Core Animation Layer, as checked in X-Code, the

Re: Follow-up on localizing Keychain names

2011-08-12 Thread Lee Ann Rucker
On Aug 12, 2011, at 3:40 PM, Greg Guerin wrote: Sean Leonard wrote: Does anybody know how the display names for these keychains are localized, and how I can use this behavior for another keychain? What have you tried? Maybe it's the same way other file-system names are localized:

Re: Does anyone else dislike Xcode 4?

2011-08-12 Thread Roland King
Rather late to this thread. I must say that gfxCardStatus is excellent, useful way beyond Xcode. For me, by the way, Xcode itself doesn't cause the switch away from the integrated chipset, but the iOS simulator does. Anyone who cares about battery life (or a machine hot on the knees), I