• 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
Some Cocoa Objective-C problems - please help
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Some Cocoa Objective-C problems - please help


  • Subject: Some Cocoa Objective-C problems - please help
  • From: Poornima Ranganath <email@hidden>
  • Date: Thu, 26 Jun 2003 15:53:46 +0100 (BST)

Hi All:

I have 4 problems and here they are

1]with Toolbar.

I have toolbar with 6 items in it of which two are
disabled/enabled on some condition. I need to query
ONLY these two toolbar items for their state [If the
item is Enabled or Disabled] on click of a Button. How
do i query only these two toolbar items on click of a
button?. I know of the method - toolbarItem
"isEnabled".But how do i get a pointers to only these
two items and query them "isEnabled" on click of a
button.?

Pls pardon me, the problem looks trivial but i am
unable to make out anything out of it.
can anyone pls pass a code snippet or tell me how to
go about it.?

2]I have a matrix of button cells in NSScrollView,
when a user selects a button cell, i need to give a
colored border to the selected cell[s].Also when the
button cell is selected, it should not have the gray
highlighting that usually happens when a cell is
selected.

Simply saying, i need something like what iPhoto does
when a image is selected.
i searched cocoa mamasam without much results for this
problem. usually this question does not get any reply
on the list.Can anyone pls help me out?

How do i achieve this and where does it need to be
done[event/action]?

3]when a button cell is selected, and "delete" key on
the keyboard is pressed, i need to call a function in
"keydown",the "keyDown" event does not get called, why
is it.? i have made the required connections.What am i
missing?

4]I have a NSImageView which dispalys a logo,When a
user clicks the logo, i need to launch a website.That
is NSImageView should act like a button. How is this
to be handled? i have made a connection to the
NSImageView and my Class through an Action message,
but the action message does not get called.
the Action Msg looks like
-(IBAction) clickImageView:(id) sender.
this does not get called at all. How will i make the
NSImageView call the above Action Method so as to say
make it work like a button?

I read some where in the documentation that i need to
use "sendAction" in "mouseDown", but i am doing
someother stuff in mousedown and don't want to call
the "sendAction" for NSImageView there.How can i do
this?

Thanks for all your precious time.

Rgds,
Poornima.
_______________________________________________
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.

  • Follow-Ups:
    • Re: Some Cocoa Objective-C problems - please help
      • From: Jonathan Jackel <email@hidden>
    • Re: Some Cocoa Objective-C problems - please help
      • From: j o a r <email@hidden>
  • Prev by Date: Re: OCUnit vs OBJCUnit
  • Next by Date: Re: Some Cocoa Objective-C problems - please help
  • Previous by thread: No window again
  • Next by thread: Re: Some Cocoa Objective-C problems - please help
  • Index(es):
    • Date
    • Thread