I'm having trouble getting Interface Builder to understand what I want.
Could someone help me ? I'm using OS 10.5.8 with Xcode 3.1.2 and IB
3.1.2. As far as I know everything is the latest version, I'm using an
'xib' file, and it doesn't matter if my application only runs on 10.5
and greater.
In my window I have an NSTextView. Actually, since it's difficult to
create one directly it's inside an NSScrollView, and the scroll view
has both scroll bars hidden. What I want to do with it is to use non-
transparent text on a transparent background. I'm trying to
demonstrate that the background is transparent by showing an image
behind it. The effect should be something like Preview uses to show
which parts of an image are transparent. So if there was, for example,
a letter 'a', there would be hole in the 'a' through which you could
see my graphic.
I have an image file (I tried PNG and TIFF) in my project. I dragged
it out of the media pane and onto my window and I get an Image Cell
inside an Image View. It looks fine in the editing window but problem
1 is that it does not show up at all when I use 'Simulate Interface'.
However it does show up if I tell Xcode to run my application (which so
far has no code, it just shows the window). So am I doing it wrong or
is there a bug in the simulator ?
Problem 2 is that I can't work out what settings in the NSScrollView
and the NSTextView to use to make the text non-transparent and but the
area around it transparent, so you can see my graphic in the spaces
inside and around the text. A further complication is that the user
must be able to set the font and other text properties in the
NSTextView, so I can't just use an NSTextField. So Problem 2 is to
work out which of the five different color wells I need to set to
transparent and which not. I think I've now tried every combination.
I think I should be able to do all this purely in IB, without writing
any code. But I could be wrong. I would be grateful for any help.
Simon.
--
I'm trying a new usenet client for Mac, Nemo OS X, since 0 days.
You can download it at
http://www.malcom-mac.com/nemo