How to remove NSMenuItem gap above custom view - macos-carbon

I was looking for something discussed in following posts.
Gap above NSMenuItem custom view.
Reverse engineering an NSMenu for a Status Bar Item
I tried the carbon code provided by Pierre Bernard
initially, i was getting same error "EXC_BAD_ACCESS on the line InstallControlEventHandler" like other had. I play with the code lots and accidently found the solution.
I have just replaced the InstallControlEventHandler function call to HIViewInstallEventHandler and everything is working fine.
Hope this will help others. Let me know if anyone need further clarification.
Special thanks to Pierre Bernard to provide great code.
Thanks

Just replace the InstallControlEventHandler function call to HIViewInstallEventHandler and code will work fine.
Thanks

Related

how can I print the credit card type in my code?

function to get the credit card type
in this photo a part of my code of the credit problem in cs50 course.
I think I wrote it right but the matter is it does not want to print any thing and I had tried different solutions but it didn't work either so I hope I could find some one who can help me with it especially if they tried to solve this problem before.
thanks in advance..

Make Spheres on a Canvas3D 'clickable'

I've got a Canvas3D which holds a couple Spheres. Is there a way to detect when the user clicks on a sphere?
In Java3D this is known as "Picking" you should read the section on the Java3D API Tutorial if you haven't already. Here is the section on Interacting with objects, you're looking for page 35 by the way:
http://java.sun.com/developer/onlineTraining/java3d/j3d_tutorial_ch4.pdf
Heres the entire tutorial:
http://java.sun.com/developer/onlineTraining/java3d/
Hopefully this answer didn't come too late! I just started Java3D myself, hope this helped!

WEPopOver and MonoTouch (MonoDevelop)

I have been trying to develop in MonoDevelop for about a week now, my boss asked me to get WEPopOver working on a particular project. I have seen the github documentation and looked at examples, but can't seem to get a working model for MonoDevelop.
Can ANYONE give me an example of how to use this WEPopOver in MonoDevelop?
thank you in advance!
Rick
Did you see/try the sample solution that comes with the bindings ?
If so then you'll need to be more explicit (edit your question) about what you want to do with it.

Three20: example of showMenu:forCell

I am not able to find any example that uses this function.
I need to see how implement a menu selecting a row in a table.
Can someone help?
Have you seen TTTableViewController showMenu:forCell: example?
The last comment on the only answer has a link to a github that has some example code. I think the author of the only answer is also the person who wrote http://cybersam.com/programming/tttableviewcontroller-showmenuforcell-example

Starting on AutoMapper

I found Automapper quite interesting from the concept. I however am trying to burn (or heat up) my fingers on it. Can somebody help me to start on this? I am yet to understand where from I can start for this. I shall like to write some code from scratch (and not use a sample of others) and then do it. A step by step hand-holding will be the most welcome help.
As Darin said, the first place to go is the home page of AutoMapper and the documentation. If you need something like a How To, I would suggest you this article: http://jasona.wordpress.com/2010/02/05/getting-started-with-automapper/ and here is an example how to map view models in ASp.Net MVC -> http://www.bengtbe.com/blog/post/2009/04/14/Using-AutoMapper-to-map-view-models-in-ASPNET-MVC.aspx
Hope that helps you a little bit ;-9

Resources