Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > Mac OS X Development Forums > Mac OS X Development

Reply
 
LinkBack Thread Tools Display Modes
Old 10-19-2011, 02:06 PM   #1 (permalink)
Registered Member
 
Join Date: Jul 2011
Posts: 16
pinky is on a distinguished road
Default Access NSTextView from Class A in Class B

Hello, i'm about to start with Cocoa coding.
I recently started my first project and i'm facing some issues
I have a NSTextView in ClassA and i want to access this textview from another Class, lets call it ClassB.
So: in ClassA ist the IBOutlet NSTextView *textView;
and then in Class B i want to change Font or set the Text from the textview. So for example [ClassA.textView setStringValue:@"Test"];

Actually i can't get this to work. I hoped maybe one of you could upload me a quick example project ?!
This would be really awesome, because i read a lot about this topic but i've never seen a full-featured tutorial on how to implement it then in Cocoa.

Again: It would be awesome !websites for sale
Rechtsanwalt Siegen

Thanks in advance

PS: Sorry for my bad english, but english isn't my native language. I hope you understand my problem anyway.

Last edited by pinky; 05-03-2012 at 11:51 AM.
pinky is offline   Reply With Quote
Old 10-19-2011, 03:30 PM   #2 (permalink)
Registered Member
 
Join Date: Jul 2011
Posts: 16
pinky is on a distinguished road
Default

nobody ? please i need your help shop online
Samsung Galaxy Tab GT-P7510/M16 Tablet Pc Computers

Last edited by pinky; 05-03-2012 at 12:45 PM.
pinky is offline   Reply With Quote
Old 10-23-2011, 03:49 AM   #3 (permalink)
Registered Member
 
Join Date: Dec 2008
Location: UK
Posts: 1,896
harrytheshark is on a distinguished road
Default

You need to use properties - there are examples of them all over the internet.
harrytheshark is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 371
10 members and 361 guests
Creativ, Emy, eski, husthlj, illogical, LegionMD, LunarMoon, padsoftware, stanny, VinceYuan
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,677
Threads: 94,127
Posts: 402,916
Top Poster: BrianSlick (7,990)
Welcome to our newest member, husthlj
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 07:17 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0