Jump to content

Darth Toplicius

  • Content count

  • Joined

  • Last visited

About Darth Toplicius

  • Rank
    InsanelyMac Protégé
  • Birthday 01/05/1977

Profile Information

  • Gender
  • Location
    Smederevo, Serbia
  1. How to get different class var

    One more thing, if you want to have a static var if I my memory serves me well you can not declare it as a property, so you will have to create your own getters and setters and they have to be class methods (declared with + not -). I mean it is not requirement, but you probably don't want to instantiate a class only to read static var...
  2. How to get different class var

    Two questions first: 1. Why do you need getCounter when you synthetized property? 2. Are you sure that this piece of code compiles properly, because you used @property (nonatomic, retain)float counter; One can not retain primitive types. The code should look like this: MainView.h @interface MainView:UIView { } @property (nonatomic, retain)float counter; MainView.m @synthesize counter; -(id)init { if (self = [super init]) { [self setCounter:1]; } return self; } subView.h @class MainView; @interface subView:UIView { MainView *mainView } @property (nonatomic, retain)MainView *mainView; subView.m #import "MainView.h" @synthesize mainView; mainView = [[MainView alloc] init]; NSLog(@"%f", [mainView counter]); Hope this helps...
  3. Setting the text of a label

    Ok, lets begin. Your controller class header should be as follows: ------------------------------------------ #import <Cocoa/Cocoa.h> @interface MyController : NSObject { IBOutlet NSTextField *myLabel; } - (IBAction)myAction:(id)sender; @end ------------------------------------------ And its implementation file should be: ------------------------------------------ #import "MyController.h" @implementation MyController - (IBAction)myAction:(id)sender { // [myLabel setTitleWithMnemonic:@"Hello world"]; [myLabel setStringValue:@"Hello World"]; } @end ------------------------------------------ You can use commented part if your label needs to have a mnemonic, but if you need just to display something you can just use setStringValue This is code, now let's go to interface builder 1. Open your project's .nib or .xib file in interface builder 2. Drag your controller's header file from Xcode to interface builder 3. In the IB palette go to Objects & Controllers section and drag an object (plain cube) into your IB project window (window where your main menu, main window and other stuff is) 4. Now select your object and in its inspector set it's class to MyController 5. Hold Ctrl and drag your button to your controller object and connect it to myAction: 6. Hold Ctrl and drag your controller to the label in window designer and connect it to myLabel 7. Save and quit IB 8. Finally run your project in Xcode. Hope this helps, but I would suggest you to go and register to developer.apple.com, where you can find everything you need to get started with Cocoa programming. Here is the link to the excellent start up tutorial: http://developer.apple.com/documentation/C..._section_1.html And one more word of advice: When learning some framework or programming language NEVER do your first steps without a lot of reading, it will lead you to misunderstanding of one's concepts, waste of time and very bad habits in coding, no meter how smart you are. Books and tutorials are written for one to learn from them, and not to try to figure how something works by himself. Cheers!
  4. You have to reinstall EFI.
  5. bootcamp and crossover question

    I don't have MacBook but Mac Pro with nVidia 7300GT. What I can tell you is that it is always better to run OS (even if it is Windows) natively instead in virtual machine/environment. All games perform way slower in virtual environment, and regarding regular software, things that you can not find natively for Mac OS X will run just fine in fussion/parallels/crossover, but some of them can't be installed with crossover, so only option is either boot into Win or use virtual machine.
  6. Thanx, man. It works with Gigabyte GA-965GM-S2. And if you add 0x28248086 into Info.plist, you get Intel ICH8-M AHCI in System Profiler instead of Unknown Standard AHCI Controller. However, the speed remains the same with or without pci id.
  7. Greedy Fascist Hackers...

    My Russian is a little rusty, but I'm almost 100% sure that превед means surprise...
  8. can login in safe mode but not in normal mode

    Try to boot with -f option, and tell what happened.
  9. Problem with SATA Harddrive

    It's not drive problem, but motherboard. To be more specific your SATA controller is not supported. You should post exact model of your motherboard, maybe we can dig something out.
  10. Leopard 10.5.2 but Finder version 10.5.3!

    Same, here. I think that OS X version and Finder version are not related. How did you managed to get your CPU recognized with vanilla kernel. Mine is also Q6600 but reported as 2.4GHz Unknown. Can you send me your AppleSMBIOS.kext...
  11. Dell XPS 410 Resource Extravaganza

    I use this on both Linux and OS X when I explicitly need Internet Explorer: http://www.tatanka.com.br/ies4linux/page/Main_Page http://www.tatanka.com.br/ies4linux/news/51
  12. Dell XPS 410 Resource Extravaganza

    Man, stop wasting your time, and try to learn something properly! Start a new project for your driver and subclass IOEthernetController, impelement all pure virtual methods as stubs, and than try to use hints from FBSD or Linux code to send and receive data from hardware. When you do that than we can talk about writing a proper driver. In my personal opinion, you maybe have somewhat good coding skill, but you know sh*t about coding drivers, especially on Darwin! Period! Word of advice: Read books, read documentation, read other peoples code, read forums. Drivers can not be written by using completely incompatibile code (if it compiles it does not mean that it will work!) and doing trial and error paradigm. And finally, try to do things in proper way, and never give up!
  13. typedef struct help

    In this thread you will find an answer: http://www.thescripts.com/forum/thread620088.html Pay special attention to post #5, it explains why sometimes you have to have named struct even if you are using typedef...
  14. Dell XPS 410 Resource Extravaganza

    AAARGHHHH! Guys stop wasting your time! THIS WILL NOT WORK! PERIOD! 1. This is cut out, ripped o,f call it whatever, code from original FreeBSD or maybe Linux driver for Intel E1000 family cards (which includes 82566) 2. All network card drivers (kexts) must inherit from IOEthernetController class! 3. Look at the code, people! It is pure C, therefore there are no (C++) classes. There can be no port of any driver from FreeBSD and or Linux to Darwin, because there are vast diferences in principles and kernel API! We elaborated this issue more than once here, and on many other forums. The FBSD and Linux code of course is not useless, BUT ONE CAN NOT MAKE IT WORK ON Darwin! You must write driver from scratch, and FBSD and Linux code can only give you directions, nothing else!
  15. Marvell on Leopard (10.5)

    If your device is 436* you need AppleYukon.kext not AppleYukon2.kext. AppleYukon.kext is missing in Leo, but you can dig it out of Tiger, as I did. To save you from hard work here it is. Just change my 0x436411AB into yours. AppleYukon.kext.zip