[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Please instruct how to work with Mac XCODE and INTERFACE BUILDER

Suresh Rajkumar

3/24/2009 7:33:00 AM

[Note: parts of this message were removed to make it a legal post.]

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

3 Answers

7stud --

3/24/2009 8:31:00 AM

0

Suresh Rajkumar 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?

--
Posted via http://www.ruby-....

matt

3/24/2009 3:07:00 PM

0

Suresh Rajkumar <sureshrajchennai@gmail.com> wrote:

> [Note: parts of this message were removed to make it a legal post.]
>
> 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).

MacRuby questions to the MacRuby list, please.

http://lists.macosforge.org/pipermail/macr...

m.
--
matt neuburg, phd = matt@tidbits.com, http://www.tidbits...
Leopard - http://www.takecontrolbooks.com/leopard-custom...
AppleScript - http://www.amazon.com/gp/product/...
Read TidBITS! It's free and smart. http://www.t...

hengist podd

3/24/2009 6:08:00 PM

0

Suresh Rajkumar 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/ap...

> 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...

HTH

has
--
Control AppleScriptable applications from Python, Ruby and ObjC:
http://appscript.sourc...
--
Posted via http://www.ruby-....