• 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: FW: Enabling and Disabling menus
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: FW: Enabling and Disabling menus


  • Subject: Re: FW: Enabling and Disabling menus
  • From: Brian Howard <email@hidden>
  • Date: Wed, 22 Aug 2001 23:57:35 -0400

On Wednesday, August 22, 2001, at 04:28 PM, Ondra Cada wrote:

>
> Triple Wow. Work it might, but I would not show it to public ;)))

> <snip other guys stuff>

> We both know it, but for newbies perhaps it should be emphasized that
> those
> have to be bound to proper menu items manually in IB.

<snip other guys stuff>

> Not needed at all.

<snip other guys stuff>
>
> What the 'sender' argument's here for? This is not an action. And the
> nice
> intuitive method name... This should be something like

<snip other guys stuff>
>
> Now, you perhaps tried that and it did not work? If so, you had the
> automatic validation (validateMenuItem:) set for the menu. Use *either*
> automatic validation *or* manual one, not both at once.

<snip other guys stuff>
>
> Well, clearing/setting menu action would work even if the automatic
> validation is set, you are right in that, but it is an indecent heap of
> quite
> unnecessary work, and it is an ugly hack which would mightily confuse
> anybody who happens to read/maintain/upgrade the code (like you the
> next year

<snip other guys stuff>
>
> Incidentally, I seldom comment a programming style, but... have you ever
> heard of the conditional expression? If you *do* want to use such a
> code, I
> guess the following is *SOMEWHAT* more intelligible, not speaking of
> the five
> lines saved:
>
<DON'T snip other guys stuff> SS> let me know if this helps
>
> Sorry, but I guess it would not, rather...

#########

Hey, Ondra, lighten up. Picking on newbies and beginners makes you look
like a bully, and you've really been on a roll tonight.

Brian E. Howard
Cocoa Cult Central
probably running for the office of SOB unopposed, once again


References: 
 >Re: FW: Enabling and Disabling menus (From: Ondra Cada <email@hidden>)

  • Prev by Date: Re: NSFileSystemSize
  • Next by Date: Re: Help on adding help
  • Previous by thread: Re: FW: Enabling and Disabling menus
  • Next by thread: Re: FW: Enabling and Disabling menus
  • Index(es):
    • Date
    • Thread