Search results

  1. zots

    Objective-C vs. Cocoa

    Cocoa's frameworks are written in objective-c so if you say you write cocoa apps it is usually obj-c unless you specify that you use java. Since gcc compiles c, c++, java I think you can write in c++ too it's just a bit of a challenge using classes in one language and writting in another.
  2. zots

    NSCoder && NSCoding

    I have been trying to get my array of custom objects written to file. My subclass implements NSCoding's: - (void)encodeWithCoder:(NSCoder *)encoder { [encoder encodeDataObject:[myString1 dataUsingEncoding:NSASCIIStringEncoding]]; [encoder encodeDataObject:[myString2...
  3. zots

    My Calculator App[

    It's solid so far. If you clear something from memory and then call memory it should do nothing, or give an alert that there is nothing in memory instead of calling a 0 value. Thats the only suggestion I could think of.
  4. zots

    Cocoa Questions Thread

    this tutorial is a good tableview example, source code and all: http://www.cocoadevcentral.com/tutorials/showpage.php?show=00000036.php kainjow, use NSFileManager's directoryContentsAtPath, fileExistsAtPath:isDirectory etc
  5. zots

    selector not recognized

    thanks i squashed the bug. now another question. i'm a little confused, it seemed like it would be a good idea to rewrite my app so that my primary data were arrays of custom objects instead of arrays of dictionaries. but i need my data to be read/write from a file. my custom objects can't...
  6. zots

    selector not recognized

    i have an app using a class i wrote. the class has 6 variables. for each variable there is the two standard methods; one for setting it, one for getting its value. my app builds with 0 errors, 0 warnings, but there is an uncaught exception at runtime telling me a selector is not recognized...
  7. zots

    Virtual Desktops

    looks good. i assume the four box icon in the toolbar is your app. can you close the 4 mini dt windows and switch dt's using that toolbar?
  8. zots

    Cocoa Questions Thread

    good infos. so if i have some object and it has a retain count of 2+, could i just obliterate it by sending dealloc or is that a bad idea? to comment on learning cocoa, the way i've been learning is coming up with a project(i wrote an app to replace my checkbook). this helped me b/c i...
  9. zots

    Cocoa Questions Thread

    how about preventing memory leaks. in my dealloc method i only release variables that i have retained. is that right? am i correct in assuming if i init and alloc something(say NSDictionary) inside a method(say init) then it is automatically released at the end of the method(init)? i ordered...
  10. zots

    Virtual Desktops

    I tried it out. Pretty cool so far. Is there a way to make an app run kind of like a system extension does in classic. It would be cool if this could run not as an application but more like a part of the OS that could be turned on/off. Can that be done?
  11. zots

    Virtual Desktops

    I really want to try your app, but I am going to wait until the next release because I dont want my DT items moved. I second the motion for some tutorials if you have the time. Also one question, have you taken any classes to learn cocoa or have you learned it from books/documentation?
  12. zots

    Developer's Tools cd?

    http://www.cocoadevcentral.com/tutorials/showpage.php?show=00000010.php
  13. zots

    Developer's Tools cd?

    depending on what you want to work with, /Developer/Documentation/ is a good start
  14. zots

    icon alpha issue

    I have a simple icon I made for my app in photoshop, I put an alpha mask on it. I made it into an .icns file in Icon Builder, the transparency works fine. Brought it into my app's resources. I set CFBundleIconFile = "cb2icon.icns"; in InfoPList. The icon shows in the about window for my app...
  15. zots

    Formatters in IB

    I finally figured that out. I did not know those things were formatters. Thanks.
  16. zots

    What is foo?

    Thanks man, I even found a foobar shirt at thinkgeek. =) edit: That site is great, the definition for luser is interesting.
  17. zots

    Formatters in IB

    Does anyone know to creat a formatter? I want a formatter on a text field so that entries must be floats. I downloaded a source project from cocoadevcentral.com and when you click a textfield it has Formatter in the info pallete with Attributes, Connections, Size, etc.
  18. zots

    What is foo?

    I see this a lot. Functions and variables named foo. Where did that come from? Something to do with OOP? FUBAR?
  19. zots

    BC Spreadsheet 1.1 beta and a question

    Not sure how to move the cursor, but to move the focus: [txtField selectText:self];
  20. zots

    A couple Q's

    I understand what you're saying about y=0 is at the bottom of the screen. I still have a problem though. When the program runs it looks like this: That is how it should be. When I click the Check radio it goes to this: The frame size and origin is perfect, but I need the content to...
Back
Top