shahine.com/omar/

homepage | Send mail to the author(s) contact

yet another Microsoft blogger
Page 1 of 2 in the NET category Next Page

# Wednesday, February 04, 2004

Will Apple Go .NET?

[OSNews] Will Apple Go .NET?

Interesting article. I'm not holding my breath waiting, but I think this would be great.

Personally, as a hobbyist programmer, I've found .NET: C# and VB.NET to be incredibly easy to learn and powerful. On the Mac I used to rely on AppleScript and Real Basic for programming. I never learned Pascal, C or Objective C. I did learn C++ and quickly determined that I wanted nothing to do with it. I also learned java and learned that Java support on the Mac was second rate (back in the days of Java 1.0 - 1.3).

.NET is simply amazing (in my humble opinion). In a few short months I've learned how to build powerful Windows Forms applications, Web based ASP.NET apps, and Mobile Compact Framework apps, Tablet apps and just recently learned a little COM interop to write a Windows Media Center Sink to display status about Media Center on my Vacuum Fluorescent Display.

Now, back to the Mac. I loved AppleScript because I could write glue that tied two Applications together and did useful things. I did quite a bit of this back then. I then moved onto

Real Basic because it allowed me to build rich GUIs with a very simple programming language. They offered Mac like native widgets unlike Java which had a horrible platform agnostic GUI. Sadly Apple's editor for AppleScript was super lame (still is) and I used a great third party product called Script Debugger. With Real Basic I was obviously using a third party product to write those programs. And with Java there was Metrowerks which is what I used in college when taking my C++ and Java classes. However, I wasn't using any Apple software or tools to develop Mac stuff. How does a company build a good developer story if it isn't in the tools business?

Enter Mac OS X. Apple now has Cocoa, Project Builder, XCode and some other stuff. However, I looked at Objective C once. It scared me to death. In my role I need to prototype a lot of UI. I've used Real Basic in the past (cause it's way easier than using PhotoShop and traditional pixel pushing), and it was great for this. However, I needed to build a prototype with a Mac native Toolbar (OS X toolbar). I figured I could fire up Interface Builder and drag the toolbar control to a Window. Nope. I had to use Apple's developer website to find some Objective C sample code to do this. Right at that point I gave up. Compare this to writing or prototyping a Windows Forms app where you just drag the control to the Form and you're done. Everything is done with point and click. And of course if you want to get fancy there are these amazing third party windows form controls. It used to be that this kind of prototyping was left for Visual Basic only, however, with Visual Studio and the .NET framework the richness of the prototyping tools and capabilities for C# and VB.NET are fantastic.

So what's my point. Apple definitely isn't helping out their developer story at all by keeping away folks like myself from writing any code on the Mac. Having support for .NET would simply be amazing, but I also think it's a pipe dream. I think there are way to many political issues for Apple to do this, most importantly, they would not want to validate .NET as a developer platform. I don't agree with a lot of what's said in the article. There are some political issues that are going to make any rational viewpoints and perspectives not apply in this case.

Posted Thursday, February 05, 2004    Permalink    Comments [6]  View blog reactions

 

# Friday, December 26, 2003

GotDotNet Sample: Shell Path Name Convert

I uploaded a new GotDotNet user sample. Shell Path Name Convert will convert a Short Path Name to a Long Path Name and vice versa. If you have written an .NET app that takes command line arguments, the shell will send you Short Path names rather than Long Path names. Unfortunatley there is no built in way to go back and forth between the two. Short Path Name is the 8 character cryptic meaningless name that is used on older filesystems that can't handle long file names.

This sample exposes two static functions in the Convert Class.

  1. public static string ToLongPathName(string shortName)
  2. public static string ToShortPathName(string longName)

There is also an enclosed test application. I hope this helps some one out ;-). I really needed this a few days ago while working on a Zipping/Unzipping application.

Posted Friday, December 26, 2003    Permalink    Comments [1]  View blog reactions

 

# Tuesday, October 28, 2003

Refactoring code in Visual Studio.NET

One of the cool things about PDC is that you get to meet interesting people, who in turn show you cool things. Today, while doing some e-mail I met Mark Colburn. He showed me a cool Refactoring tool called Refactory

How many times have you quickly whipped up a form, and left all the names of the controls the defaults like “Label1”, etc? To change these things later on is a complex search and replace and then usually a lot of clean-up because your search and replace was either too aggressive, or not aggressive enough. This takes care of that.

Also, while talking to him I was complaining that there is no good Diff tool in VS.NET. WinDiff isn’t very good, and I’m using a program called Compare and Merge which offers a decent visual view of file and folder diffs. Anyway, the Program Manager of the Longhorn SDK was sitting right next to me and overheard this. She gave me her card and told me to send her that feedback! Cool. I showed her Compare and Merge to give her an idea of what I expect to be part of the platform.

Finally, he pointed me to http://www.refactoring.com/ which has some great resource and a good book by Martin Fowler that he recommended I get.

update: seems that Whidbey will offer most of these features. Man I can't wait till I can switch over, but that while be a while.

Posted Tuesday, October 28, 2003    Permalink    Comments [2]  View blog reactions

 

# Tuesday, September 09, 2003

Modify TextBox Control Tab Stops

I was frustrated by the large amount of white space in Windows Forms TextBox controls. After poking around at work, someone kindly offered some code explaining how to change the amount of white space.

I've placed an example (in C#) of such a Windows Forms project on GotDotNet. You can download the example and see for yourself.

update: GotDotNet is gone, so here is the relavent code.

Posted Tuesday, September 09, 2003    Permalink    Comments [0]  View blog reactions

 

# Thursday, August 28, 2003

Changing the tab stop in a textbox

The other day I was writing an app that used a text box. However, the default number of tab spaces (amount of white space) is too large for me (set to 8 spaces). I searched in vain for a way to do this and a fellow Microsoft co-worker showed me how.

Posted Thursday, August 28, 2003    Permalink    Comments [0]  View blog reactions

 

Page 1 of 2 in the NET category Next Page