• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Text fields doesn't draw in a custom view
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Text fields doesn't draw in a custom view


  • Subject: Text fields doesn't draw in a custom view
  • From: Ivan Myrvold <email@hidden>
  • Date: Sun, 19 May 2002 12:50:20 +0200

I have a fairly complicated view hierarchy, in a nib file.

I have a window with a custom view, contained in an NSScrollView..
I have a view defined in that nib file consisting of an NSImageView, and some NSTextField's dropped on top of that.

In my code, I am setting the view in the window with the call:

[oscrollView setDocumentView:omyview]
[omyview scrollPoint:punkt] // just to scroll the view to the top

The window is showing the image contained in the "omyview" NSImageView just fine, but the text fields on top of that view doesn't show at all, although by hovering the cursor over where the text fields are supposed to be, changes the cursor to the correct icon (I-beam, or whatever it's called). So the text fields are there, but why doesn't they show up. Clicking inside the text fields only results in an alert sound.

I have put the text fields in front with the "Bring to front" command in the IB's Layout menu, and connected all the outlets.

Ivan
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Text fields doesn't draw in a custom view
      • From: Ivan Myrvold <email@hidden>
  • Prev by Date: AltiVec optimization in Cocoa?
  • Next by Date: Re: Final Cut 1.0 GUI/Theme
  • Previous by thread: Re: AltiVec optimization in Cocoa?
  • Next by thread: Re: Text fields doesn't draw in a custom view
  • Index(es):
    • Date
    • Thread