• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Invisible files (was Re: Small problem)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Invisible files (was Re: Small problem)


  • Subject: Re: Invisible files (was Re: Small problem)
  • From: David Sinclair <email@hidden>
  • Date: Sat, 14 Jun 2003 15:16:54 -0700

On Saturday, Jun 14, 2003, at 14:53 US/Pacific, Jesus De Meyer wrote:

BOOL fileVisible = !(invisibleFlag && invisibleName);

This line is your problem. It will evaluate true unless both the flag and name are true.

Instead, change it to:

BOOL fileVisible = !invisibleFlag && !invisibleName;

or to:

BOOL fileVisible = !(invisibleFlag || invisibleName);

(Either is fine; which you use depends on your aesthetics.)

--

David Sinclair, Dejal Systems, LLC - email@hidden

Let Dejal Simon keep an eye on your sites for changes or failures!
http://www.dejal.com/simon/
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: Invisible files (was Re: Small problem) (From: Jesus De Meyer <email@hidden>)

  • Prev by Date: Re: Invisible files (was Re: Small problem)
  • Next by Date: Re: Cocoa's custom class delegate conventions
  • Previous by thread: Re: Invisible files (was Re: Small problem)
  • Next by thread: Re: Invisible files (was Re: Small problem)
  • Index(es):
    • Date
    • Thread