Mozketo / LaunchAtLoginController

A very simple to implement and consume Controller for Objective-C Cocoa Mac Apps to (de)register itself for Launch at Login using LSSharedFileList.
179 stars 51 forks source link

Synthesized property 'loginItems' Error #6

Open JohnSlaughter opened 12 years ago

JohnSlaughter commented 12 years ago

When building for 32/64 bit, I get the following error:

"Synthesized property 'loginItems' must either be named the same as a compatible ivar or must explicitly name an ivar"

Tweaking the .h file, like so, fixes it:

@interface LaunchAtLoginController : NSObject { LSSharedFileListRef loginItems; }

This allows 32-bit support. Not sure if there's a better way, but that worked for me.

skurfer commented 12 years ago

Just ran into the same thing (and added the same fix locally).