• 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
Fwd: Re: Displaying my view in a Window
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Fwd: Re: Displaying my view in a Window


  • Subject: Fwd: Re: Displaying my view in a Window
  • From: Chaffinch <email@hidden>
  • Date: Tue, 11 Feb 2003 16:42:33 +0000 (GMT)

--- Gerard Iglesias <email@hidden> wrote: > Date: Tue, 11 Feb
2003 17:06:27 +0100
> From: Gerard Iglesias <email@hidden>
> To: Chaffinch <email@hidden>
> Subject: Re: Displaying my view in a Window
>
> Chaffinch wrote:
>
> >I'll try this, sounds a lot simpler.
> >
> >
> A lot more :), but building a window content by hand is a good training
>
> >Well, instead of a small editable "area" within my main window, the whole
> of
> >the window is replaced with the text view. However, typing anything in
> here
> >cause a SIG error.
> >
> Ok, what is normal in this situation is the complete fill of the window
> content with the scrollview, it is the effect of setContentView: call,
> this message ask the window to replace the contentview by the given one
>
> Maybe the siggdev is du to a weird bug in the AppKit that replace the
> content view of the window with a currently subview of the window? I
> don't know
>
> I understand that it is not your will to have the view filling the
> window content, hence place the window where you want and don't send the
> setContentView: message
>
> >That is what I thought happened. Is this done "behind the scenes" or do I
> >still need an NSWindow * window in the NSWindowController class header
> file?
> >
> >I have just changed to using an NSScrollView as you suggested above, with
> the
> >following in my awakeFromNib:
> >
> > [ scrollView setDocumentView:textView ];
> > [ [self window] setContentView:scrollView ];
> > [ [self window] makeKeyAndOrderFront:nil ];
> > [ [self window] makeFirstResponder:textView ];
> >
> >I have a main window with a small scroll view in one corner, I would
> expect
> >the textview to appear within the small scroll view. Instead it covers the
> >entire window????
> >
>
> Send me you small test to me, I will make a try this evening, but before
> try only this thing :
>
> [ scrollView setDocumentView:textView ];
>
>
> It would suffice to get what you really want...?
>
> Gerard
>

=====
Regards

Chaffinch
----------------------------------------------
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com
_______________________________________________
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.

  • Prev by Date: RTFD File Encoding
  • Next by Date: Fwd: Re: Displaying my view in a Window
  • Previous by thread: Displaying my view in a Window
  • Next by thread: Fwd: Re: Displaying my view in a Window
  • Index(es):
    • Date
    • Thread