Re: Programming without seeing
Re: Programming without seeing
- Subject: Re: Programming without seeing
- From: David Niemeijer <email@hidden>
- Date: Wed, 21 Jan 2004 09:54:03 +0100
Hi Saqib,
I have read in many places that it is possible to develop using Cocoa/Carbon
without using Interface Builder, but after a week of Googling have not found
a single example I can learn from. Does anyone have any suggestions?
I am not a Cocoa programmer (yet), but in Carbon you can create just
about any interface element right in your code. There is no need at
all to use IB. The benefit of IB to seeing programmers is that they
can visually arrange items on the screen rather then calculate
postitions and dimensions in pixel coordinates. IB is also nice in
that it allows you to separate code from interface, which facilitates
for example locatlization. But, if you want you can just as well
create a window using code.
For example, CreateNewWindow allows you to create a new window of a
specific class, with specific attributes, and with a specific
bounding rectangle. Other calls will allow you to modify certain
features on the fly. In a similar fashion their are calls to create a
button, a piece of static text and so forth, all in code. These calls
that create and manipulate user interface elements are no different
then any other calls you make to the system so I guess that is why
you did not find any special examples on this topic. Just use the
online documentation at
http://developer.apple.com/documentation/Carbon/UserExperience-date.html
for details on the code to generate user interfaces.
hope this helps,
david.
_______________________________________________
accessibility-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/accessibility-dev
Do not post admin requests to the list. They will be ignored.