Re: login items hide box

2009-09-25 Thread Rick C.
thank jerry i'll look at your project.  the only issue i'm having is in leopard 
so i'll definitely have to do something that works there.  i'll post back,

rick






From: Jerry Krinock 
To: cocoa dev 
Sent: Saturday, September 26, 2009 2:45:38 AM
Subject: Re: login items hide box

On 2009 Sep 24, at 06:25, Rick C. wrote:

> so i do need to update my code.  but i'll be on the lookout for potential 
> LSSharedFileList issues.  thank you!

Just to clarify, unless Apple has silently fixed the bug in 10.6 and you're 
using 10.6, I expect that you will see the same issue after updating to 
LSSharedFileList.  Also, LSSharedFileList has another bug -- a difficult API 
with not much documentation.  Two other developers have told me that they've 
found my Cocoa wrapper helpful...

  http://sheepsystems.com/sourceCode/ssyloginitems.html

If you find that Apple has fixed the bug in 10.6, do let us know.


___

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/jo_phls%40yahoo.com

This email sent to jo_p...@yahoo.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: login items hide box

2009-09-25 Thread Jerry Krinock

On 2009 Sep 24, at 06:25, Rick C. wrote:

so i do need to update my code.  but i'll be on the lookout for  
potential LSSharedFileList issues.  thank you!


Just to clarify, unless Apple has silently fixed the bug in 10.6 and  
you're using 10.6, I expect that you will see the same issue after  
updating to LSSharedFileList.  Also, LSSharedFileList has another bug  
-- a difficult API with not much documentation.  Two other developers  
have told me that they've found my Cocoa wrapper helpful...


  http://sheepsystems.com/sourceCode/ssyloginitems.html

If you find that Apple has fixed the bug in 10.6, do let us know.


___

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: login items hide box

2009-09-24 Thread Rick C.
thank you both.  yes apple events and i just confirmed that adding it manually 
does work.  so i do need to update my code.  but i'll be on the lookout for 
potential LSSharedFileList issues.  thank you!

rick






From: Jerry Krinock 
To: cocoa dev 
Sent: Thursday, September 24, 2009 9:03:17 PM
Subject: Re: login items hide box


On 2009 Sep 24, at 05:47, Ron Fleckner wrote:

> In part, it says:
> 
> "Due to a bug  in Mac OS X 10.4 and later (up to 
> including 10.4.2, which is the latest release at the time this was written), 
> LoginItemsAE can't handle hidden login items properly.  That is, the value of 
> kLIAEHidden is always false and you can't add a hidden login item.  This bug 
> does not affect earlier systems."
> 
> Are you using Apple Events to create your login item?  If so, this bug could 
> be causing your problem.

Well, actually the same bug appears to affect not only LoginItemsAE, but also 
if you use the more "modern" method (requires 10.5), LSSharedFileList.  I 
reported this bug to Apple on 2008-04-30.  It appears that Apple has marked 
this bug as "closed", but they never added any details.


Problem ID 5901742

30-Apr-2008 02:48 PM Jerry Krinock:

* SUMMARY

The 'hidden' attribute for Login Items in the LSSharedList API has a disconnect 
with the reality. In more detail, when reading a Login Item, the 'hidden' 
attribute is read as 0, even if it is in fact '1', unless the 'hidden' 
attribute has been set by the LSSharedList API. In that case, it doesn't really 
set, but when you read it back with the API, it says that it is set, even 
though in fact it is not.

* STEPS TO REPRODUCE

Build and run the attached project. Follow the prompts shown in the the console.

* EXPECTED RESULTS In all tests, the values read and written using the 
LSSharedList API and shown in the log should agree with what is shown in the 
System Preferences application.

* ACTUAL RESULTS

In Test #1, items which have the "Hide" box checked in System Preferences read 
from the API hidden=0.
In Test #5, although the API set Safari to "Hide" and the API read it back as 
hidden=1, if you look in System Preferences you see that the "Hide" box is not 
checked.

'SSLoginItems.zip' was successfully uploaded


___

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/jo_phls%40yahoo.com

This email sent to jo_p...@yahoo.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: login items hide box

2009-09-24 Thread Jerry Krinock


On 2009 Sep 24, at 05:47, Ron Fleckner wrote:


In part, it says:

"Due to a bug  in Mac OS X 10.4 and later  
(up to including 10.4.2, which is the latest release at the time  
this was written), LoginItemsAE can't handle hidden login items  
properly.  That is, the value of kLIAEHidden is always false and you  
can't add a hidden login item.  This bug does not affect earlier  
systems."


Are you using Apple Events to create your login item?  If so, this  
bug could be causing your problem.


Well, actually the same bug appears to affect not only LoginItemsAE,  
but also if you use the more "modern" method (requires 10.5),  
LSSharedFileList.  I reported this bug to Apple on 2008-04-30.  It  
appears that Apple has marked this bug as "closed", but they never  
added any details.



Problem ID 5901742

30-Apr-2008 02:48 PM Jerry Krinock:

* SUMMARY

The 'hidden' attribute for Login Items in the LSSharedList API has a  
disconnect with the reality. In more detail, when reading a Login  
Item, the 'hidden' attribute is read as 0, even if it is in fact '1',  
unless the 'hidden' attribute has been set by the LSSharedList API. In  
that case, it doesn't really set, but when you read it back with the  
API, it says that it is set, even though in fact it is not.


* STEPS TO REPRODUCE

Build and run the attached project. Follow the prompts shown in the  
the console.


* EXPECTED RESULTS In all tests, the values read and written using the  
LSSharedList API and shown in the log should agree with what is shown  
in the System Preferences application.


* ACTUAL RESULTS

In Test #1, items which have the "Hide" box checked in System  
Preferences read from the API hidden=0.
In Test #5, although the API set Safari to "Hide" and the API read it  
back as hidden=1, if you look in System Preferences you see that the  
"Hide" box is not checked.


'SSLoginItems.zip' was successfully uploaded


___

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: login items hide box

2009-09-24 Thread Ron Fleckner


On 24/09/2009, at 10:14 PM, Rick C. wrote:


hello,

i have an app that when added to a user's login items with the hide  
box checked it still shows its main window when starting up on  
leopard.  on snow leopard it properly stays hidden.  on a personal  
note i had this same issue with mail on leopard and i have a feeling  
there might be some kind of bug regarding using that hide box on  
leopard as some apps seem to follow it and some not.  my question is  
can it be my code that's causing the issue and i can make some  
adjustments to resolve this?  but i don't make a specific call to my  
main window upon launch (at least not in code) it's only the  
checkbox in IB Visible At Launch.  thank you for your input,


rick


Hi Rick,

have a look at  and the Readme file that comes with it.


In part, it says:

"Due to a bug  in Mac OS X 10.4 and later (up  
to including 10.4.2, which is the latest release at the time this was  
written), LoginItemsAE can't handle hidden login items properly.  That  
is, the value of kLIAEHidden is always false and you can't add a  
hidden login item.  This bug does not affect earlier systems."


Are you using Apple Events to create your login item?  If so, this bug  
could be causing your problem.  I haven't yet examined the sample code  
(just looked at it quickly today), but I think you can get the hidden  
part to work using one of the other methods of creating a login item.


Ron

___

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


login items hide box

2009-09-24 Thread Rick C.
hello,

i have an app that when added to a user's login items with the hide box checked 
it still shows its main window when starting up on leopard.  on snow leopard it 
properly stays hidden.  on a personal note i had this same issue with mail on 
leopard and i have a feeling there might be some kind of bug regarding using 
that hide box on leopard as some apps seem to follow it and some not.  my 
question is can it be my code that's causing the issue and i can make some 
adjustments to resolve this?  but i don't make a specific call to my main 
window upon launch (at least not in code) it's only the checkbox in IB Visible 
At Launch.  thank you for your input,

rick

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.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