X-Git-Url: http://git.ithinksw.org/MenuTunes.git/blobdiff_plain/7c8b58558998c9369bbf1953c49a883eabea5e73..4ceec63fa54ca0281b26107bcfc78617c9854d4c:/NetworkObject.m diff --git a/NetworkObject.m b/NetworkObject.m index a29c3f5..7c5a018 100755 --- a/NetworkObject.m +++ b/NetworkObject.m @@ -1,20 +1,3 @@ -/* - * MenuTunes - * NetworkObject - * Remote network object that is vended - * - * Original Author : Kent Sutherland - * Responsibility : Kent Sutherland - * - * Copyright (c) 2002 - 2003 iThink Software. - * All Rights Reserved - * - * This header defines the Objective-C protocol which all MenuTunes Remote - * plugins must implement. To build a remote, create a subclass of this - * object, and implement each method in the @protocol below. - * - */ - #import "NetworkObject.h" #import "MainController.h" #import @@ -53,7 +36,7 @@ - (BOOL)requiresPassword { - return [[NSUserDefaults standardUserDefaults] boolForKey:@"enableSharingPassword"]; + return ([[[NSUserDefaults standardUserDefaults] dataForKey:@"sharedPlayerPassword"] length] > 0); } - (BOOL)sendPassword:(NSData *)password @@ -72,6 +55,11 @@ _valid = NO; } +- (void)makeValid +{ + _valid = YES; +} + - (BOOL)isValid { return _valid;