Well a video is worth that times 1,000. They say a picture is worth a 1,000 words. Today we have something we didn’t have years ago that is a lot better than documentation and that is called videos. Instead of going the documentation route which didn’t work I thought I would try a different approach. I tried several years ago but honestly after reading some documentation on Apple’s web site I wasn’t any better off than when I started. After Microsoft today announced the general availability of Visual Studio for Mac, many developers on forum sites questioned if it's really the same IDE that Windows users have known and loved for years, or a refactored, rebadged and rebranded version of Xamarin Studio - and no less than Xamarin chief Miguel de Icaza himself weighed in with some answers.The other day I was playing on my aging Powerbook and thought I’d investigate writing applications on Mac OS X using XCode.
![]() ![]() Is Visual Studio Better Than Xcode Mac OS X Using XCodeThere would simply be another click event that would call into the model. That’s all your controller is doing is invoking the same method in the model but in reality under the hood an event still has to fire. Let’s not make it sound over complicated and FUD the discussion.If I did your example I would create a method to “beep” (we’ll call this my model) and then simply invoke that method in both onclick methods. For your example of adding another button there wouldn’t be another code file or inheritance in UI classes or anything like that needed to clarify that for the general public. If you choose your language because it doesn’t let you do the wrong thing, why wouldn’t you choose your development environment that way is cool David but it isn’t needed in every single application built in the world. Internet explorer for mac 10411 free downloadIt is commericial but does MVC and shows how that is / could be done in VS if you so choose.For those of you not seeing the advantage of the little extra MVC work in this contrived example, take it one step further. Net application built and how that is or would be typically done I invite you to check out DevExpress’s XAF framework. Net development.If you want to see a MVC. Myself I actually just turned down a job since I refuse to work in VS ever again. NET as well, but the pervasiveness of MVC in the Cocoa framework make it easier.As for the UI issues comparing the two, really it’s a OSX vs Windows issue that comes down to preference. Yes you can write MVC code in. The take home message of watching these demos side by side is not that you can make a pointless program in fewer clicks with VS, it should be to see the potential flexibility that the Cocoa way of doing this example gives you. In the Cocoa example, since you separated the model behavior from your button view code, all you do is drop in another button, drag to hook it up to the controller object, and you’re there. In the VS example, you will have to repeat the steps all over again, including creating another code file for another OnClick() method, or you will have to start inheriting your UI classes which will involve a bit more work. ![]() Controllers were wasted architecture.I think the point of the original tutorial was an introduction into how Xcode worked though, not how to write a beep application. Sometimes the very nature of the IDE, be it from Microsoft or Apple over complicates development by enforcing and encouraging a paradigm that does not necessarily work for a particular job.In this case, were you building a simple beep application, Visual Studio wins hands down, you did not need the power of the MVC pattern behind this app. At the end of the day, most of us will not write simple applications that you can just drag and drop and be done. You sound overly aggressive, like you HAVE to make your point and that people HAVE to listen to you.You’re right, it is about choice.
0 Comments
Leave a Reply. |
AuthorJulie ArchivesCategories |