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 02-08-2012, 01:49 PM   #1 (permalink)
Registered Member
 
bluebeardit's Avatar
 
Join Date: May 2011
Posts: 108
bluebeardit is on a distinguished road
Default Start a methode in the main window from another class

Hi everyone, I need help with a problem I'm facing these days:
I have a main window that is associated with a class (lets call it ClassA) and I have a panel associated with another class (lets call it ClassB).
I open the panel with a button on the main window and execute some methodes in the ClassB.... at the end I want to close the panel (I know how to do that) and execute a methode in ClassA, but the command for that has to be in ClassB....
I don't know how to do it....
I tryed with

Code:
ClassA* myScript = [[ClassA alloc] init];
[myScript myMethodeOnClassA];
but it doesnt work...
I mean... it works but then it crashes... I guess this is not the right way to follow.... but then wich is it?

Any advise would be very appreciated...
Thanks and Peace!
Massy
bluebeardit is offline   Reply With Quote
Old 02-11-2012, 06:43 PM   #2 (permalink)
Registered Member
 
bluebeardit's Avatar
 
Join Date: May 2011
Posts: 108
bluebeardit is on a distinguished road
Default

Anyone? I thought it was a simple thing....
bluebeardit 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: 377
10 members and 367 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:18 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0