Ask a Question related to Mac Programming, Design and Development.
-
Wezzy #1
[Newbie] TabView how to
Hi i'm writing a simple editor and i try to use NSTabView. The problem
is this : how can i programmaticaly open a new tab and insert a
NSTextView with scroll support ? When my user open a new file i'm able
to initialize a new tabItem with a NSTextView inside, but it hasn't
scroll bar :(
Please help me
Wezzy
Wezzy Guest
-
A newbie with a newbie question
Good afternoon everyone, My Name is Dusty I am new to this forum and pretty new to Acrobat. I have Acrobat 9 running on an IMAC running 10.5.2 I... -
Help for a Newbie
Hi All, I have 3 files I am using, Index.html, Test.asp, MyNewpage.html. I am try to load MyNewPage.html into Test.asp. Index.html has a link as... -
Newbie help?
Can someone recommend a book or a site or something that will help me figure out how to make a website in Flash? Can you have iframes of sorts in... -
Newbie needs help
I am teaching myself Flash using Flash MX.. I have created a small Flash movie but can't find any direction on how to get rid of the excess page ... -
Newbie help with LWP
When you login the server must pass a token back to the browser so that the browser can identify itself to the server in the next request. This is... -
matt neuburg #2
Re: [Newbie] TabView how to
In <vl_Ua.26651$sj6.586948@tornado.fastwebnet.it> Wezzy wrote:
An NSTextView doesn't have a scroll bar. An NSScrollView has a scroll> Hi i'm writing a simple editor and i try to use NSTabView. The problem
> is this : how can i programmaticaly open a new tab and insert a
> NSTextView with scroll support ? When my user open a new file i'm able
> to initialize a new tabItem with a NSTextView inside, but it hasn't
> scroll bar :(
bar. If you want a scrollable text view, make an NSScrollView and put an
NSTextView inside it. m.
PS This has nothing to do with TabView.
--
matt neuburg, phd = [email]matt@tidbits.com[/email], [url]http://www.tidbits.com/matt[/url]
REALbasic: The Definitive Guide! 2nd edition!
[url]http://www.amazon.com/exec/obidos/ASIN/0596001770/somethingsbymatt[/url]
Subscribe to TidBITS. It's free and smart.
matt neuburg Guest
-
matt neuburg #3
Re: [Newbie] TabView how to
In <gaeVa.27631$sj6.608593@tornado.fastwebnet.it> Wezzy wrote:
You make an NSScrollView, you make an NSTextView, and then you call> matt neuburg wrote:
>>>> An NSTextView doesn't have a scroll bar. An NSScrollView has a scroll
>> bar. If you want a scrollable text view, make an NSScrollView and put
>> an NSTextView inside it. m. PS This has nothing to do with TabView.
>>
> Yes i've understand it but how can i put the NSTextView in
> NSScrollView ?? i'm not able to do it!
setDocumentView. m.
--
matt neuburg, phd = [email]matt@tidbits.com[/email], [url]http://www.tidbits.com/matt[/url]
REALbasic: The Definitive Guide! 2nd edition!
[url]http://www.amazon.com/exec/obidos/ASIN/0596001770/somethingsbymatt[/url]
Subscribe to TidBITS. It's free and smart.
matt neuburg Guest
-
Wezzy #4
Re: [Newbie] TabView how to
matt neuburg wrote:
Well i try something like this but it doesn't work!> You make an NSScrollView, you make an NSTextView, and then you call
> setDocumentView. m.
>
NSScrollView *scroller;
NSTabViewItem * item;
scroller = [[NSScrollView alloc] init];
[scroller setDocumentView:[[NSTextView alloc] init]];
item = [[NSTabViewItem alloc] init];
[item setView:scroller];
[myTabView addTabViewItem:item];
Can you tell me where is my error ?
Thanks a lot for your time
Wezzy
Wezzy Guest
-
matt neuburg #5
Re: [Newbie] TabView how to
In <z9jVa.28412$sj6.618635@tornado.fastwebnet.it> Wezzy wrote:
That's not how you create an NSScrollView. Read the docs. Hint: an> matt neuburg wrote:
>
> scroller = [[NSScrollView alloc] init];
NSScrollView is an NSView. m.
--
matt neuburg, phd = [email]matt@tidbits.com[/email], [url]http://www.tidbits.com/matt[/url]
REALbasic: The Definitive Guide! 2nd edition!
[url]http://www.amazon.com/exec/obidos/ASIN/0596001770/somethingsbymatt[/url]
Subscribe to TidBITS. It's free and smart.
matt neuburg Guest
-
Wezzy #6
Re: [Newbie] TabView how to
matt neuburg wrote:
Ok now i go to read everything about NSView!> In <z9jVa.28412$sj6.618635@tornado.fastwebnet.it> Wezzy wrote:>>> matt neuburg wrote:
>>
>> scroller = [[NSScrollView alloc] init];
> That's not how you create an NSScrollView. Read the docs. Hint: an
> NSScrollView is an NSView. m.
>
Can you sugguest me a good Cocoa book?
Thanks a lot
Wezzy
Wezzy Guest
-
matt neuburg #7
Re: [Newbie] TabView how to
In <yRrVa.28621$sj6.626359@tornado.fastwebnet.it> Wezzy wrote:
The docs that come with Cocoa are excellent (and getting better). m.> matt neuburg wrote:
>>>> In <z9jVa.28412$sj6.618635@tornado.fastwebnet.it> Wezzy wrote:>>>>> matt neuburg wrote:
>>>
>>> scroller = [[NSScrollView alloc] init];
>> That's not how you create an NSScrollView. Read the docs. Hint: an
>> NSScrollView is an NSView. m.
>>
> Ok now i go to read everything about NSView!
>
> Can you sugguest me a good Cocoa book?
--
matt neuburg, phd = [email]matt@tidbits.com[/email], [url]http://www.tidbits.com/matt[/url]
REALbasic: The Definitive Guide! 2nd edition!
[url]http://www.amazon.com/exec/obidos/ASIN/0596001770/somethingsbymatt[/url]
Subscribe to TidBITS. It's free and smart.
matt neuburg Guest
-
Laurent Daudelin #8
Re: [Newbie] TabView how to
In message <vl_Ua.26651$sj6.586948@tornado.fastwebnet.it>, Wezzy <Fabio@est.it>
wrote:That's because an NSTextView is usually put inside an NSScrollView...>
> Hi i'm writing a simple editor and i try to use NSTabView. The problem
> is this : how can i programmaticaly open a new tab and insert a
> NSTextView with scroll support ? When my user open a new file i'm able
> to initialize a new tabItem with a NSTextView inside, but it hasn't
> scroll bar :(
>
> Please help me
>
> Wezzy
>
-Laurent.
--
================================================== ===============
Laurent Daudelin Logiciels Nemesys Software
mailto:laurent.daudelin@ihatespam.net <http://nemesys.dyndns.org>
Replace ihatespam with verizon to reply
+++++++++++ Sent using an Apple Newton MessagePad 2100 ++++++++++
Laurent Daudelin Guest



Reply With Quote

