# Please instruct how to work with Mac XCODE and INTERFACE BUILDER

**URL:** <https://www.ruby-forum.com/t/please-instruct-how-to-work-with-mac-xcode-and-interface-builder/163712>\
**Category:** Ruby\
**Created:** [March 24, 2009, 8:36am UTC](https://www.ruby-forum.com/t/please-instruct-how-to-work-with-mac-xcode-and-interface-builder/163712 "2009-03-24T08:36:44Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![suresh\_r](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/258eb7/32.png) [@suresh\_r](https://www.ruby-forum.com/u/suresh_r)\
**Post date:** [March 24, 2009, 8:36am UTC](https://www.ruby-forum.com/t/please-instruct-how-to-work-with-mac-xcode-and-interface-builder/163712/1 "2009-03-24T08:36:44Z")

</div>

Dear ALL

```
I make the RUBY application in Mac Xcode and desgin the window and

```

controls in the interface builder.

```
in my application i make the Datetime picker control and i am able 

```

to  
get the Date String value to the Textbox.

but i need the short date value to the Textbox, please tell how i  
convert  
the Datetime picker date value to short value like “DD/MM/YYYY”.

And also i need the sample codes of the xcode (Mac Ruby).

Thanks & Regards,  
Suresh

---

<div class="post-metadata">

**Author:** ![suresh\_r](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/258eb7/32.png) [@suresh\_r](https://www.ruby-forum.com/u/suresh_r)\
**Post date:** [March 24, 2009, 9:33am UTC](https://www.ruby-forum.com/t/please-instruct-how-to-work-with-mac-xcode-and-interface-builder/163712/2 "2009-03-24T09:33:58Z")

</div>

Suresh R. wrote:

> Dear ALL
> 
> ```
> I make the RUBY application in Mac Xcode and desgin the window and
> 
> ```
> 
> controls in the interface builder.

How do you do that?

---

<div class="post-metadata">

**Author:** ![suresh\_r](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/258eb7/32.png) [@suresh\_r](https://www.ruby-forum.com/u/suresh_r)\
**Post date:** [March 24, 2009, 4:10pm UTC](https://www.ruby-forum.com/t/please-instruct-how-to-work-with-mac-xcode-and-interface-builder/163712/3 "2009-03-24T16:10:55Z")

</div>

Suresh R. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> but i need the short date value to the Textbox, please tell how i convert  
> the Datetime picker date value to short value like “DD/MM/YYYY”.
> 
> And also i need the sample codes of the xcode (Mac Ruby).

MacRuby questions to the MacRuby list, please.

[http://lists.macosforge.org/pipermail/macruby-devel/](http://lists.macosforge.org/pipermail/macruby-devel/)

m.

---

<div class="post-metadata">

**Author:** ![suresh\_r](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/258eb7/32.png) [@suresh\_r](https://www.ruby-forum.com/u/suresh_r)\
**Post date:** [March 24, 2009, 7:11pm UTC](https://www.ruby-forum.com/t/please-instruct-how-to-work-with-mac-xcode-and-interface-builder/163712/4 "2009-03-24T19:11:15Z")

</div>

Suresh R. wrote:

> Dear ALL
> 
> ```
> I make the RUBY application in Mac Xcode and desgin the window and
> 
> ```
> 
> controls in the interface builder.
> 
> ```
> in my application i make the Datetime picker control and i am able 
> 
> ```
> 
> to  
> get the Date String value to the Textbox.
> 
> but i need the short date value to the Textbox, please tell how i  
> convert  
> the Datetime picker date value to short value like “DD/MM/YYYY”.

Refer to the Cocoa documentation for NSDatePicker and NSDate, in  
particular -[NSDatePicker dateValue] and -[NSDate  
descriptionWithCalendarFormat:timeZone:locale:]

FWIW, I find AppKiDo particularly convenient for browsing Cocoa class  
documentation:

[http://homepage.mac.com/aglee/downloads/appkido.html](http://homepage.mac.com/aglee/downloads/appkido.html)

> And also i need the sample codes of the xcode (Mac Ruby).

Look in /Developer/Examples/Ruby for Ruby and RubyCocoa examples.

BTW, this may also be of interest to you:

[http://pragprog.com/titles/bmrc/rubycocoa](http://pragprog.com/titles/bmrc/rubycocoa)

HTH

## has

Control AppleScriptable applications from Python, Ruby and ObjC:  
[http://appscript.sourceforge.net](http://appscript.sourceforge.net)
