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 the issue. I am 
not using any classes other than NSView and one other class that I defined, 
LinearGraph.
Which is the same class out of the Xcode 3 Unleashed book. Not sure where to go 
looking for the problem.
Everything is there. I cannot find any more definitive info on that error 
message. I assume Interface builder is also version 4.1 ? Its no longer a 
separate product.

Dale Satterfield
dsatterfi...@mac.com

___

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 cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


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 
> forSaveOperation:(NSSaveOperationType)saveOperation completionHandler:(void 
> (^)(NSError *errorOrNil))completionHandler
> gets called, the arguments are as expected (i.e. the URL is still the 
> original file with the "incorrect" extension and the type is the writable 
> type I set myself), nevertheless, the URL is never changed and it ends up 
> overwriting my original file in the wrong format. :(
> 
> Could this be due to me using a NSFileWrapper-based directory package 
> (whereas the read-only type is a simple flat-file)?

I've made an example project showing my problem from the NSDocument-based 
application template, it can be found at
http://www.maven.de/code/DiagSavingProblem.zip
The example only overrides, fileWrapperOfType:error, 
readFromFileWrapper:ofType:error, 
saveToURL:ofType:forSaveOperation:completionHandler: as well as 
autosavingFileType and autosavesInPlace (and readFromURL to modify the edited 
state).

Oddly enough, the TextEdit example *should* end up with the same problem when I 
create a .rtf-document, drag an attachment into it (so it becomes .rtfd), and 
then close the document. Unfortunately, it works fine for TextEdit but I cannot 
see anything between my example and TextEdit that could cause it to behave 
differently, even after having put breakpoints onto every imaginable message.

Can anyone see what I'm doing wrong or differently from TextEdit?

Thanks,
Daniel.___

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 cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


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 when diagnosing 
remote problems. Without installing GDB on his Mac (something I can't ask a 
user to do) I don't know how else to get more information.

Any ideas or suggestions? Thanks!

Regards,
Ryan Joseph
thealchemistguild.com

___

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 cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


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 comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


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 Xcode.mpkg. Install as usual.


Andreas___

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 cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


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 editor rearranged everything. 

- Original Message -
From: "Dale Satterfield" 
To: cocoa-dev@lists.apple.com
Sent: Saturday, July 23, 2011 2:36:45 AM
Subject: Error Message in 4.1(Lion)

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 the issue. I am 
not using any classes other than NSView and one other class that I defined, 
LinearGraph.
Which is the same class out of the Xcode 3 Unleashed book. Not sure where to go 
looking for the problem.
Everything is there. I cannot find any more definitive info on that error 
message. I assume Interface builder is also version 4.1 ? Its no longer a 
separate product.

Dale Satterfield
dsatterfi...@mac.com

___

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 cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/lrucker%40vmware.com

This email sent to lruc...@vmware.com
___

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 cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


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 Snow Leopard partition.

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 haven't noticed any problems other than messages being 
logged to the system stderr on various topics, none of which appear to be very 
serious.

However, to be safe, when I want to ship (as I just did), I boot into Snow 
Leopard to do the final build.

___

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 cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


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 window] is not deprecated, but 
-[NSCachedImageRep window] was deprecated a while ago, so maybe the compiler 
confused the two…

Nick Zitzmann




___

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 cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


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  

and have a property (and ivar) in my NSViewController subclass:

@property (assign) MainWindowController *windowController;


So, in MasterDetailController, if I call:

[[[windowController window] contentView] setNeedsDisplay:YES];

I get the warning: 

 'window' maybe deprecated because receiver type is unknown

and doing this:

NSWindow * wind = [windowController window];

I get this one:

 'window' is deprecated

I've tried to clean the project, but the warnings are still there…


Thanks for your reply,


Andre Masse


On 23/07/2011, at 14:05 , Nick Zitzmann wrote:

> 
> 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 window] is not deprecated, but 
> -[NSCachedImageRep window] was deprecated a while ago, so maybe the compiler 
> confused the two…
> 
> Nick Zitzmann
> 
> 
> 
> 

___

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 cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


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 their 
answers to technical questions.

If a user is having trouble, send them a script.  Ask them to just run the 
script and send you the results.

You can download my script from here.

http://sheepsystems.com/files/SSYTroubleZipper.app

It surfs to our privacy policy, asks the user a few questions about how much 
personal information they'd like to include, filters the system console log, 
gets crash logs, versions of my app, versions of related apps, a list of 
launchd agents, a list of Internet Plug-Ins, document files, my app's 
Application Support, Preferences, bookmarks files (since my apps are bookmarks 
managers), other stuff I've forgotten and, of course, a system profile.  Then 
it zips it all up, starts a self-addressed email message and asks the user to 
send it.

If you've got a simple Mac App Store type of app which does not interact with 
the system, your needs will be much simpler.  Snip the parts that you need into 
your script.

You can make it even easier.  My latest app's help Menu has a Trouble Zipper 
item.  When a user clicks that item, it downloads the latest script from that 
link, unzips and launches it.


___

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 cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


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  
> 
> and have a property (and ivar) in my NSViewController subclass:
> 
> @property (assign) MainWindowController *windowController;
> 
> 
> So, in MasterDetailController, if I call:
> 
> [[[windowController window] contentView] setNeedsDisplay:YES];
> 
> I get the warning: 
> 
> 'window' maybe deprecated because receiver type is unknown
> 
> and doing this:
> 
> NSWindow * wind = [windowController window];
> 
> I get this one:
> 
> 'window' is deprecated
> 
> I've tried to clean the project, but the warnings are still there…
> 
> 
> Thanks for your reply,
> 
> 
> Andre Masse
> 
> 
> On 23/07/2011, at 14:05 , Nick Zitzmann wrote:
> 
>> 
>> 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 window] is not deprecated, but 
>> -[NSCachedImageRep window] was deprecated a while ago, so maybe the compiler 
>> confused the two…
>> 
>> Nick Zitzmann
>> 
>> 
>> 
>> 
> 
> ___
> 
> 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 cocoa-dev-admins(at)lists.apple.com
> 
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/cocoa-dev/devlists%40shadowlab.org
> 
> This email sent to devli...@shadowlab.org

-- Jean-Daniel




___

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 cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


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

> 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 Snow Leopard partition.
> 
> 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 haven't noticed any problems other than 
> messages being logged to the system stderr on various topics, none of which 
> appear to be very serious.
> 
> However, to be safe, when I want to ship (as I just did), I boot into Snow 
> Leopard to do the final build.

___

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 cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


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 officially supported, it still works under Lion. 
(And I still think Xcode 4 is a major regression from Xcode 3.)

I did file a bug report asking for an updated version of Xcode 3 that will 
officially install under Lion. After all, they did release a version of Xcode 2 
that would install under Leopard and Snow Leopard. If you would like that as 
well, then please join me in filing a report.

Nick Zitzmann




___

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 cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


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 ‘windowController’? Sounds like, whatever 
type it is, the header for that class hasn’t been #imported in this source file.

—Jens___

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 cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


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 have my NSWindowController subclass declared as:
>> 
>> @interface MainWindowController : NSWindowController  
>> 
>> and have a property (and ivar) in my NSViewController subclass:
>> 
>> @property (assign) MainWindowController *windowController;
>> 
>> 
>> So, in MasterDetailController, if I call:
>> 
>> [[[windowController window] contentView] setNeedsDisplay:YES];
>> 
>> I get the warning: 
>> 
>> 'window' maybe deprecated because receiver type is unknown
>> 
>> and doing this:
>> 
>> NSWindow * wind = [windowController window];
>> 
>> I get this one:
>> 
>> 'window' is deprecated
>> 
>> I've tried to clean the project, but the warnings are still there…
>> 
>> 
>> Thanks for your reply,
>> 
>> 
>> Andre Masse
>> 
>> 
>> On 23/07/2011, at 14:05 , Nick Zitzmann wrote:
>> 
>>> 
>>> 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 window] is not deprecated, but 
>>> -[NSCachedImageRep window] was deprecated a while ago, so maybe the 
>>> compiler confused the two…
>>> 
>>> Nick Zitzmann
>>> 
>>> 
>>> 
>>> 
>> 
>> ___
>> 
>> 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 cocoa-dev-admins(at)lists.apple.com
>> 
>> Help/Unsubscribe/Update your Subscription:
>> http://lists.apple.com/mailman/options/cocoa-dev/devlists%40shadowlab.org
>> 
>> This email sent to devli...@shadowlab.org
> 
> -- Jean-Daniel
> 
> 
> 
> 

___

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 cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


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

> 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 when diagnosing remote problems. Without installing GDB on his Mac 
> (something I can't ask a user to do) I don't know how else to get more 
> information.
> 
> Any ideas or suggestions? Thanks!
> 
> Regards,
>Ryan Joseph
>thealchemistguild.com
___

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 cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


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 Lion on a Mac which has Xcode 3 already installed.
• Rename /Developer to, say, /Developer3.
• Install Xcode 4.

> If you would like that as well, then please join me in filing a report.

OK, I will do that.  But all I really want is my damned User Scripts back!  Oh, 
then there's 10.5 thing with libcrypto.  But with User Scripts, at least I 
could develop and debug in Xcode 4 and then do the Release build in Xcode 3.


___

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 cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


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 uncaught exception does not produce a crash report 
> although it's a crash for all purposes to a user.

Regards,
Ryan Joseph
thealchemistguild.com

___

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 cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


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 cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


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 application on 10.5.


-- Jean-Daniel




___

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 cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


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  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, if you link on libcrypto from the 10.6 or 10.7 SDK (whatever Xcode 
> version you use), you cannot run your application on 10.5.
> 
> 
> -- Jean-Daniel
> 
> 

Jean, do you have a test project?  I would like to try it locally?

-Conrad

> 
> 
> ___
> 
> 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 cocoa-dev-admins(at)lists.apple.com
> 
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/cocoa-dev/conradwt%40gmail.com
> 
> This email sent to conra...@gmail.com
___

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 cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


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  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, if you link on libcrypto from the 10.6 or 10.7 SDK (whatever Xcode 
> version you use), you cannot run your application on 10.5.
> 
> 
> -- Jean-Daniel
> 
> 
> 
> 
___

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 cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


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 some time but it 
works well in Xcode 4.

--Richard

___

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 cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


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 text of an 
entire document?  That's important to many of my scripts.

Jerry





___

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 cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


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 requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


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  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, if you link on libcrypto from the 10.6 or 10.7 SDK (whatever Xcode 
>> version you use), you cannot run your application on 10.5.
>> 
>> 
>> -- Jean-Daniel
>> 
>> 
> 
> Jean, do you have a test project?  I would like to try it locally?
> 
> -Conrad
> 

No need to have a test case. 10.5 don't have libcrypto.0.9.8.dylib which is the 
one used when you link your binary using the 10.6 or 10.7 SDK.
Obviously, when you try to run such executable on 10.5, the applications crash 
with a library not found error.

I workaround this issue by embedding a copy of the libcrypto.dylib stub from 
10.5 in my project and linking to it explicitly.

-- Jean-Daniel




___

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 cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


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

-- Simone


Il giorno Jul 23, 2011, alle ore 14:43, cocoa-dev-requ...@lists.apple.com ha 
scritto:

> 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 application on 10.5.
> 
> 
> -- Jean-Daniel
___

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 cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


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 returns.
However, the window that needs to get updated with new graphics does not
change.

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. I've tried awakeFromNib, setNeedsDisplay, needsDisplay, and
display, but nothing I've found so far gets the NSView window to call
drawRect.

I am fairly new to OS X programming and appreciate any hints you can throw
my way.

Thanks, Tom Jeffries
___

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 cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


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. I've tried awakeFromNib, setNeedsDisplay, needsDisplay, and
> display, but nothing I've found so far gets the NSView window to call
> drawRect.
> 
> I am fairly new to OS X programming and appreciate any hints you can throw
> my way.


Show your code.

You don't call drawRect: - the framework does. You can tell the framework it 
needs to be called by calling the view's -setNeedsDisplay: method. Are you 
doing that?

How does the button come into it? How are you responding to the button? That's 
the trouble - what you've said so far is far too vague, it could be a thousand 
different things (but probably something simple).

--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 cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


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
(among other things):

   [super setNeedsDisplay : YES];

[SequeraStepWindow setNeedsDisplay : YES];

[self setNeedsDisplay : YES];

[SequeraStepWindow display];

[self display];

[super display];

When I run the code that displays the graphics in question on initialization
it works fine, but when I call it later in the program it the new graphics
are not displayed.  The code in the graphics module that displays the window
is working perfectly, but somehow drawRect never gets called after it is
called during initialization.

On Sat, Jul 23, 2011 at 9:06 PM, Graham Cox  wrote:

>
> 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. I've tried awakeFromNib, setNeedsDisplay, needsDisplay, and
> display, but nothing I've found so far gets the NSView window to call
> drawRect.
>
> I am fairly new to OS X programming and appreciate any hints you can throw
> my way.
>
>
>
> Show your code.
>
> You don't call drawRect: - the framework does. You can tell the framework
> it needs to be called by calling the view's -setNeedsDisplay: method. Are
> you doing that?
>
> How does the button come into it? How are you responding to the button?
> That's the trouble - what you've said so far is far too vague, it could be a
> thousand different things (but probably something simple).
>
> --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 cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: drawRect not getting called when needed under OS X

2011-07-23 Thread Jens Alfke

On Jul 23, 2011, at 9:33 PM, Tom Jeffries wrote:

> The code in the graphics module that displays the window
> is working perfectly, but somehow drawRect never gets called after it is
> called during initialization.

Are you certain it never gets called? Put an NSLog(@“drawRect!”); call into the 
drawRect: method and see if that message gets logged when you expect or not.
Put a breakpoint in the button’s action method and see whether that gets 
called. Check the value of the variable you call setNeedsDisplay: on — if it’s 
nil, nothing will happen.

—Jens___

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 cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: drawRect not getting called when needed under OS X

2011-07-23 Thread Stephen J. Butler
On Sat, Jul 23, 2011 at 11:33 PM, Tom Jeffries  wrote:
> When I run the code that displays the graphics in question on initialization
> it works fine, but when I call it later in the program it the new graphics
> are not displayed.  The code in the graphics module that displays the window
> is working perfectly, but somehow drawRect never gets called after it is
> called during initialization.

Just to be clear, you're doing one of these two things:

1) all of your drawing *inside the drawRect:* of your subclass.

2) all of your drawing to some sort of temporary context, then copying
it *inside the drawRect:* of your subclass.
___

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 cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: drawRect not getting called when needed under OS X

2011-07-23 Thread Ron Fleckner
Tom, if you want to draw in a view from somewhere else, I think you need to 
bracket that drawing with calls to [targetView lockFocus] and [targetView 
unlockFocus].  Or, you could have a condition of some sort, a BOOL I suppose, 
in the targetView which it checks every time it redraws to see if it needs to 
draw the extra stuff.  That way you can keep the all the drawing in the one 
view.  Then you'd just, in your button code, [targetView setBOOL:YES] and 
[targetView setNeedsDisplay:YES];

Ron


On 24/07/2011, at 2:33 PM, Tom Jeffries wrote:

> 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
> (among other things):
> 
>   [super setNeedsDisplay : YES];
> 
> [SequeraStepWindow setNeedsDisplay : YES];
> 
> [self setNeedsDisplay : YES];
> 
> [SequeraStepWindow display];
> 
> [self display];
> 
> [super display];
> 
> When I run the code that displays the graphics in question on initialization
> it works fine, but when I call it later in the program it the new graphics
> are not displayed.  The code in the graphics module that displays the window
> is working perfectly, but somehow drawRect never gets called after it is
> called during initialization.
> 
> On Sat, Jul 23, 2011 at 9:06 PM, Graham Cox  wrote:
> 
>> 
>> 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. I've tried awakeFromNib, setNeedsDisplay, needsDisplay, and
>> display, but nothing I've found so far gets the NSView window to call
>> drawRect.
>> 
>> I am fairly new to OS X programming and appreciate any hints you can throw
>> my way.
>> 
>> 
>> 
>> Show your code.
>> 
>> You don't call drawRect: - the framework does. You can tell the framework
>> it needs to be called by calling the view's -setNeedsDisplay: method. Are
>> you doing that?
>> 
>> How does the button come into it? How are you responding to the button?
>> That's the trouble - what you've said so far is far too vague, it could be a
>> thousand different things (but probably something simple).
>> 
>> --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 cocoa-dev-admins(at)lists.apple.com
> 
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/cocoa-dev/ronfleckner%40ozemail.com.au
> 
> This email sent to ronfleck...@ozemail.com.au

___

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 cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com