Giter VIP home page Giter VIP logo

Comments (6)

 avatar commented on June 9, 2024

CPToolbaritems don’t alternate their icon when pressing label

Invalid.

Take a look at the flickr demo

by Stephan Eggermont

from cappuccino.

 avatar commented on June 9, 2024

CPToolbaritems don’t alternate their icon when pressing label

I’ve looked at the flickr demo, 280slides and at the behavior of the Cocoa toolbar in Pages and other Apple apps.

When you only click on the label of an CPToolbarItem, you don’t see any feedback in the form of the image button going down as if being pressed.

You can even see in the cocotron sources that their implementation of the toolbar behaves exactly the way as in cocoa. (i.e. with the feedback on the image/icon)

So i don’t know why you give me such a short description and redirecting me to the flickr demo. Could you elaborate on this?

(tested under FF and Safari)

by Redmar

from cappuccino.

 avatar commented on June 9, 2024

CPToolbaritems don’t alternate their icon when pressing label

Sorry, clicking on the label doesn’t show the alternate image. It doen’t have anything to do with the target and action though, which should be the same.

by Stephan Eggermont

from cappuccino.

 avatar commented on June 9, 2024

CPToolbaritems don’t alternate their icon when pressing label

It doen’t have anything to do with the target and action though, which should be the same.

It does. Implementation wise. ATM the internals of a toolbaritem are that they contain two duplicate targets and actions but on the outer side, the interface, it only has one target and action.

But by internally using 2 pairs of target/actions you can never capture in the image if the label is pressed because it just fires it’s own target and action.

by Redmar

from cappuccino.

 avatar commented on June 9, 2024

CPToolbaritems don’t alternate their icon when pressing label

Thanks for your bug report.
Do you think you could provide us with sample code that illustrates this bug?
You could upload a sample AppController.j here or more simply paste it on http://gist.github.com and link it here.
It would definitely help to solve it quickly.

by Thomas Balthazar

from cappuccino.

tolmasky avatar tolmasky commented on June 9, 2024

Implemented manual validation for toolbar items and fixed a number of toolbar bugs.

Closed by 8f1e56e.
Closed by 8f1e56e.

Reviewed by me.

from cappuccino.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.