Re: How to save a window's position and size

2020-05-24 Thread Gabriel Zachmann via Cocoa-dev
>> 
>> No guarantees, but you could try moving your code into an AppDelegate method 
>> that gets invoked earlier:
>> 
>> - (void)applicationWillFinishLaunching:(NSNotification *)notification;
>> 

Sorry for bothering again.  The above solutions works very well.

Now I would like to make my app start in *fullscreen* mode, too,
if the user quit it last time while it was in fullscreen mode.

Alternatively, is there a way to start it such that it always starts in 
fullscreen,
no matter the window size/position when the user quit it last time?
Maybe with a command line option like
  
   open -f MyApp.app 
?

Best regards, Gabriel





smime.p7s
Description: S/MIME cryptographic signature
___

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

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


Re: Xcode Archive builds Debug version?

2020-05-24 Thread Richard Charles via Cocoa-dev


> On May 24, 2020, at 2:47 AM, Gabriel Zachmann via Cocoa-dev 
>  wrote:
> 
> I am confused: does Xcode really build the debug version when I make an 
> Archive?

There are two build configurations Debug and Release. The default build 
configuration is Debug when building and running.

Xcode uses the Release configuration when building an Archive. This is the same 
configuration used when Profiling.

You can see all of this in Edit Scheme...

--Richard Charles

___

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

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


Re: Xcode Archive builds Debug version?

2020-05-24 Thread Sandor Szatmari via Cocoa-dev
Gabriele,

When you do archive Xcode uses a different build destination.  It seems to use 
/Library/Developer/Xcode/Archives 

It builds an Archive bundle of sorts to package your build.

You can right click in the organizer and select ‘Show In Finder’ and explore 
what Xcode is building for you.  I suspect it should be correct.

Sandor

> On May 24, 2020, at 04:47, Gabriel Zachmann via Cocoa-dev 
>  wrote:
> 
> When I do Product / Archive , Xcode builds my app and shows it in the 
> Organizer.
> However, it only creates /tmp/Debug, even though the Scheme has Build 
> Configuration = Release in the Archive section.
> (I have set Derived Data to /tmp in the Locations tab in Xcode's preferences.)
> 
> I am confused: does Xcode really build the debug version when I make an 
> Archive?
> (which I need for signing and notarizing)
> Or does it build the Release version and - erroneously - puts it in 
> /tmp/Debug?
> 
> Either way I would like to correct that and sort things out.
> 
> Could some kind should please shed some light on this?
> 
> Best regards, Gabriel
> 
> ___
> 
> 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:
> https://lists.apple.com/mailman/options/cocoa-dev/admin.szatmari.net%40gmail.com
> 
> This email sent to admin.szatmari@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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

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


Xcode Archive builds Debug version?

2020-05-24 Thread Gabriel Zachmann via Cocoa-dev
When I do Product / Archive , Xcode builds my app and shows it in the Organizer.
However, it only creates /tmp/Debug, even though the Scheme has Build 
Configuration = Release in the Archive section.
(I have set Derived Data to /tmp in the Locations tab in Xcode's preferences.)

I am confused: does Xcode really build the debug version when I make an Archive?
(which I need for signing and notarizing)
Or does it build the Release version and - erroneously - puts it in /tmp/Debug?

Either way I would like to correct that and sort things out.

Could some kind should please shed some light on this?

Best regards, Gabriel



smime.p7s
Description: S/MIME cryptographic signature
___

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

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