Hi,

> Am 27.02.2026 um 22:07 schrieb Josh Freeman <[email protected]>:
> 
> - (void)textDidChange:(NSNotification *)notification
> {
> ...
>  if([nameLink length] && [urlLink hasPrefix: @"http"])
>  {
>    NSLog(@"Button save enabled");
>    [savebutton setEnabled:YES];
>  }
>  else
>  {
>    [savebutton setEnabled:NO];
>  }
> }

I think you can even reduce this to a single line

        [savebutton setEnabled:([nameLink length] && [urlLink hasPrefix: 
@"http"])]

BR,
Nikolaus


Reply via email to