Lion doesn't like tricky.key.paths in bindings?

2011-07-23 Thread Jerry Krinock
In Interface Builder, I often set a binding like this: Bind to: FooController (an NSObjectController, instantiated in nib) Controller Key: selection (an instance of Foo) Model Key Path: barDate.someFormattingMethod where 'barDate' is an NSDate attribute of 'foo' and 'someFormattingMethod is,

Core Data: I/O Error No Such Column

2011-07-23 Thread Nick Shore
I'm getting the following error in my application: CoreData: error: (1) I/O error for database at /Users/nick/library path/blah.sqlite. SQLite error code:1, 'no such column: t1.Z_3RELATIONSHIPENTITY1 This error only occurs if I build the project in Xcode 4.1 on Lion. If I build the same

Error Message in 4.1(Lion)

2011-07-23 Thread Dale Satterfield
I have a project that compiles fine with no errors under 4.02 under Snow Leopard. But under 4.1 I get the following about one of my xib's: Class Unavailable User defined runtime attributes with Interface Builder versions prior to 3.2 When I dbl-click this it opens the xib, but nothing indicates

Re: NSDocument: Read-only types and autosavesInPlace

2011-07-23 Thread Daniel Vollmer
After some more time on this, I still don't get it. =) I've given this a go, but it does not seem to work for me. I set the new fileType after [super readFromURL:...] is done. Then, when - (void)saveToURL:(NSURL *)url ofType:(NSString *)typeName

No crash report generated

2011-07-23 Thread Ryan Joseph
I'm trying to debug a crash with a user but there is no crash report to be found in Console.app and I was curious what would cause a crash to not generate a report. I have noticed in the past sometimes crashes happen without reports also and without them I have basically no information to go on

NSWindowController window deprecated

2011-07-23 Thread Andre Masse
Hi, Got this warning in Xcode 4.1 on Lion. Is this really deprecated? There's no indication in NSWindowController header… Thanks, Andre Masse___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator

Re: Xcode 3.2.6 on Lion ?

2011-07-23 Thread Andreas Mayer
Am 23.07.2011 um 03:39 schrieb Rick C.: I have just installed the App Store version of Xcode 4.1 and I noticed I had no options when installing about choosing directory or anything. Locate the 'Xcode Install' package. Show package contents. Inside the Resources folder you will find

Re: Error Message in 4.1(Lion)

2011-07-23 Thread Lee Ann Rucker
Sounds like you have User Defined Runtime Attributes set in the Identity panel, which was the rightmost one with an i icon in IB. The problem is with the nib's Development Target, which needs to be at least 3.2. I know how and where to fix it in IB (Window - Document Info), but the XCode nib

Re: Xcode 3.2.6 on Lion ?

2011-07-23 Thread Jerry Krinock
Since there's so much anecdotal information flying around I thought I'd repeat this: On 2011 Jul 05, at 13:00, David Duncan (of Apple) wrote (to xcode-users group): 3.2.6 is not supported on Lion. The recommendation would be to install Xcode 4 on your Lion partition, and Xcode 3.2.6 on your

Re: NSWindowController window deprecated

2011-07-23 Thread Nick Zitzmann
On Jul 23, 2011, at 7:50 AM, Andre Masse wrote: Hi, Got this warning in Xcode 4.1 on Lion. Is this really deprecated? There's no indication in NSWindowController header… Are you sure the object is typed as an NSWindowController and not an id or something else? -[NSWindowController

Re: NSWindowController window deprecated

2011-07-23 Thread Andre Masse
Not sure what's going on, I have my NSWindowController subclass declared as: @interface MainWindowController : NSWindowController NSWindowDelegate and have a property (and ivar) in my NSViewController subclass: @property (assign) MainWindowController *windowController; So, in

Re: No crash report generated

2011-07-23 Thread Jerry Krinock
On 2011 Jul 23, at 06:28, Ryan Joseph wrote: I'm trying to debug a crash with a user but there is no crash report to be found in Console.app What does the word crash mean to this user? Any ideas or suggestions? Don't annoy users by asking them to be computer techs, and don't rely on

Re: NSWindowController window deprecated

2011-07-23 Thread Jean-Daniel Dupas
Make sure you import all the required headers (especially the one defining MainWindowController). Le 23 juil. 2011 à 21:29, Andre Masse a écrit : Not sure what's going on, I have my NSWindowController subclass declared as: @interface MainWindowController : NSWindowController

Re: Xcode 3.2.6 on Lion ?

2011-07-23 Thread Laurent Daudelin
Jerry, How and where did you install it? -Laurent. -- Laurent Daudelin AIM/iChat/Skype:LaurentDaudelin http://www.nemesys-soft.com/ Logiciels Nemesys Software laur...@nemesys-soft.com On Jul 23, 2011, at 10:36, Jerry

Re: Xcode 3.2.6 on Lion ?

2011-07-23 Thread Nick Zitzmann
On Jul 23, 2011, at 1:55 PM, Laurent Daudelin wrote: Jerry, How and where did you install it? The Lion installer didn't uninstall my copy of Xcode 3.2.6 when I upgraded from Snow Leopard. I didn't install it into the /Developer folder. And I can confirm that, despite it not being

Re: NSWindowController window deprecated

2011-07-23 Thread Jens Alfke
On Jul 23, 2011, at 12:29 PM, Andre Masse wrote: So, in MasterDetailController, if I call: [[[windowController window] contentView] setNeedsDisplay:YES]; I get the warning: 'window' maybe deprecated because receiver type is unknown What’s the type of the local variable

Re: NSWindowController window deprecated

2011-07-23 Thread Andre Masse
Wow! I feel so stupid! That was it! Thanks, Andre Masse On 23/07/2011, at 15:55 , Jean-Daniel Dupas wrote: Make sure you import all the required headers (especially the one defining MainWindowController). Le 23 juil. 2011 à 21:29, Andre Masse a écrit : Not sure what's going on, I

Re: No crash report generated

2011-07-23 Thread Gary L. Wade
Off the top of my head, an uncaught exception does not produce a crash report although it's a crash for all purposes to a user. - Gary L. Wade (Sent from my iPhone) On Jul 23, 2011, at 6:28 AM, Ryan Joseph r...@thealchemistguild.com wrote: I'm trying to debug a crash with a user but there is

Re: Xcode 3.2.6 on Lion ?

2011-07-23 Thread Jerry Krinock
On 2011 Jul 23, at 13:07, Nick Zitzmann wrote: On Jul 23, 2011, at 1:55 PM, Laurent Daudelin wrote: Jerry, How and where did you install it? The Lion installer didn't uninstall my copy of Xcode 3.2.6 when I upgraded from Snow Leopard. Nick is correct. The easy way: • Upgrade to

Re: No crash report generated

2011-07-23 Thread Ryan Joseph
That must be correct because the console did report that much (EAccessViolation which means invalid memory was accessed). If these can not generate crash reports then it's hard to say when can be done. Thanks. On Jul 23, 2011, at 2:29 PM, Gary L. Wade wrote: Off the top of my head, an

Re: Xcode 3.2.6 on Lion ?

2011-07-23 Thread Mike Abdullah
Oh, then there's 10.5 thing with libcrypto As far as I can tell that got fixed for the GM. ___ 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: Xcode 3.2.6 on Lion ?

2011-07-23 Thread Jean-Daniel Dupas
Le 23 juil. 2011 à 23:22, Mike Abdullah a écrit : Oh, then there's 10.5 thing with libcrypto As far as I can tell that got fixed for the GM. What's got fixed, and what GM ? AFAIK, if you link on libcrypto from the 10.6 or 10.7 SDK (whatever Xcode version you use), you cannot run your

Re: Xcode 3.2.6 on Lion ?

2011-07-23 Thread Conrad Taylor
Sent from my iPhone On Jul 23, 2011, at 2:28 PM, Jean-Daniel Dupas devli...@shadowlab.org wrote: Le 23 juil. 2011 à 23:22, Mike Abdullah a écrit : Oh, then there's 10.5 thing with libcrypto As far as I can tell that got fixed for the GM. What's got fixed, and what GM ? AFAIK,

Re: Xcode 3.2.6 on Lion ?

2011-07-23 Thread Mike Abdullah
Ah, I guess we had the opposite case. Were building against 10.5 SDK and that wouldn't run on Lion seeds. Runs on Lion GM though Sent from my iPad On 23 Jul 2011, at 10:28 PM, Jean-Daniel Dupas devli...@shadowlab.org wrote: Le 23 juil. 2011 à 23:22, Mike Abdullah a écrit : Oh, then

Re: Xcode 3.2.6 on Lion ?

2011-07-23 Thread Richard Somers
On Jul 23, 2011, at 11:36 AM, Jerry Krinock wrote: That being said, primarily because of the lack of User Scripts support in Xcode 4 which I find intolerable, I'm using Xcode 3.2.5 for my daily work, and of course running Lion. I converted all my user scripts to automator services. It took

Re: Xcode 3.2.6 on Lion ?

2011-07-23 Thread Jerry Krinock
On 2011 Jul 23, at 15:18, Richard Somers wrote: I converted all my user scripts to automator services. It took some time but it works well in Xcode 4. The last time I looked at Services, it only allowed you to access the selected (highlighted) text. Is there any way to get and replace the

Re: Scripting with Services - one more thing

2011-07-23 Thread Jerry Krinock
One more thing, Richard. Is there any way to get the position of the cursor in the document, for example, if you want to insert some text at the cursor position? ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin

Re: Xcode 3.2.6 on Lion ?

2011-07-23 Thread Jean-Daniel Dupas
Le 23 juil. 2011 à 23:40, Conrad Taylor a écrit : Sent from my iPhone On Jul 23, 2011, at 2:28 PM, Jean-Daniel Dupas devli...@shadowlab.org wrote: Le 23 juil. 2011 à 23:22, Mike Abdullah a écrit : Oh, then there's 10.5 thing with libcrypto As far as I can tell that got fixed

Re: Cocoa-dev Digest, Vol 8, Issue 553

2011-07-23 Thread Simone Manganelli
There is a workaround for this bug. See this answer to the same question on Stack Overflow: http://stackoverflow.com/questions/2616738/linking-to-libcrypto-for-leopard/2620698#2620698 I haven't tested whether this bug still exists in Lion or not, but if it does, that workaround will likely

drawRect not getting called when needed under OS X

2011-07-23 Thread Tom Jeffries
I am using a window that uses a subclass of NSView. Part of it is drawn when the program starts, another part needs to be drawn when the user clicks on a button in another window. The code for the other window calls my subclass of NSView with no problems, creates the new graphics, and then

Re: drawRect not getting called when needed under OS X

2011-07-23 Thread Graham Cox
On 24/07/2011, at 1:46 PM, Tom Jeffries wrote: When I put both the beginning graphics and the graphics that are to be drawn later in the initial drawRect call everything is drawn without a problem. However, drawRect does not get called when the user clicks the button on the second window.

Re: drawRect not getting called when needed under OS X

2011-07-23 Thread Tom Jeffries
Graham, I'm not calling drawRect. The button click goes to another module in the program, all the code in that module works fine, then it calls the module that has the NSView, executes the code for creating all the lines and shapes, and then tries to get the new graphics to display. I've tried