• 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
Edit : select All - problem in cocoa App
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Edit : select All - problem in cocoa App


  • Subject: Edit : select All - problem in cocoa App
  • From: "Ramakrishna Kondapalli" <email@hidden>
  • Date: Thu, 8 Jan 2004 11:05:48 +0530
  • Thread-topic: Edit : select All - problem in cocoa App

Hi,

I am working on an application with the main window having two parts
having the following layout:

On the left side of the window is the an NSOutlineView



On the right side of the window, there is a NSMatrix view and
NSTableView. (At a time only one is active and the user can toggle
between these two views using buttons). The contents of these views are
the same, albeit in different format (Matrix and Table)



The problem is related to selectAll system menu and deselection of item
in the other view. I am not doing any special handling for this menu
item, other than connecting it to the selector selectAll:

When I am in the NSTableview, selectAll menu is enabled and also works
fine, selecting all the contents. Also when I click in this view, the
corresponding selected item in the NSOutlineView is selected in a
grayish highlighted form(deselected), signifying that currently mouse is
active in the other view. And I haven't done anything special for all
this handling but this is desired behavior.



But when I am in NSMatrix view, selectAll doesn't works at all (though
there is a default implementation of selectAll: method in NSMatrix
class). Moreover, when I click in the matrix view, NSOutlineView item
remains selected in its normal form (and is not dimmed/deselected as in
the case of table view click). In this case, I am overriding mouseDown
method to do some implementation like identifying the click/drag, etc.
( this I have yet to duplicate for the table view)

Also when I toggle immediately from table view to matrix view, the
NSOutline view item remains in deselected form, but in this case,
selectAll: method is disabled



I tried writing selectAll: method in my validatemenuItem: method; but
the control doesn't come there at all. Do I have to do something in the
mouseDown method for this? Any ideas/ suggestions?





-------------------------------------------------------

Thanks & Regards,

Ramakrishna,
_______________________________________________
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.

  • Prev by Date: Re: class variables and class methods
  • Next by Date: Icons in Dock Menu
  • Previous by thread: Re: waveform question
  • Next by thread: Icons in Dock Menu
  • Index(es):
    • Date
    • Thread