discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problem with Renaissance and InstanceOf


From: Sašo Kiselkov
Subject: Re: Problem with Renaissance and InstanceOf
Date: Fri, 05 Aug 2005 11:07:23 +0200
User-agent: Internet Messaging Program (IMP) 3.2.5

Quoting Chris Meredith <tallin32@comcast.net>:

> Greetings.
>
> I'm trying to use GNUstep Renaissance as a means of designing user
> interfaces for Mac OS X applications (because Interface Builder's
> lack of support for assistive technology for the blind is driving me
> up a wall 'cause, well, I'm blind, and because Apple has decided that
> blind people are more likely to want to use iTunes than Interface
> Builder (how could they *THINK* such things!), because candor
> compells me to admit that Apple's probably right on that one, and
> because waiting for Apple to add support for Interface Builder to
> their screen reader for OS X is not an option (because I only have so
> much lifespan)).  At any rate, I'm trying to figure out how to
> instantiate, say, a NSProgressIndicator object (which I'm presuming
> is specific to OS X), with code such as the following:
>
> <gsmarkup>
>      <objects>
>          <window title="foo"/>
>              <vbox>
>              ...
>              <    view instanceOf="NSProgressIndicator" height=12/>
>                  ...
>              </vbox>
>          </window>
>      </objects>
> </gsmarkup>
>
> I can't instantiate ANYTHING, by the looks of things, using the
> instanceOf attribute either with the "instance" or "view" tag (I also
> attempted to instantiate an NSButton object per one of the
> examples).  No joy.  Just an empty window.

NSProgressIndicator isn't specific to Apple - the old OpenStep specification
(from which both Cocoa and GNUstep are derived) had it too.

About the code: I'm not sure whether it's just a typo in the code you pasted,
but the window specification should be like this:

<window title="foo">
  <vbox>
    <view instanceOf="NSProgressIndicator" height="12"/>
  </vbox>
</window>

(without the trailing slash in the <window> opening tag, and the "height"
attribute value quoted)

Anyways, in the case of the "view" tag you should define both the width and
height attributes (or in some form tell the view it's width). That's because
Renaissance can't figure out the correct size of the view to fit it's contents.
Maybe something like the following will help:

<window title="foo">
  <vbox>
    <view instanceOf="NSProgressIndicator" halign="expand" height="12"/>
  </vbox>
</window>

>
> Also, in an attempt to compile Renaissance from source, which led to
> an attempt to get GNUstep Make, which led to an attempt to get
> GNUstep Startup, I got an error telling me that the system couldn't
> use my Objective-C compiler to make binaries.  Is the Apple gcc
> incompatible with building GNUstep and, if I completely replaced it
> with the FSF compiler, would it break Apple's toolchain?  I was under
> the strange impression that they were equivalent.
>
> -C-
>
>
> _______________________________________________
> Discuss-gnustep mailing list
> Discuss-gnustep@gnu.org
> http://lists.gnu.org/mailman/listinfo/discuss-gnustep
>

Apple has a specically modified derivate of GCC. Replacing the Apple GCC with
the GNU GCC would therefore most likely not be a very good idea. But this is
only my guess - I never tried it myself.

Regards
 Saso






reply via email to

[Prev in Thread] Current Thread [Next in Thread]