Search results

  1. zots

    First cocoa app

    I wrote this specifically for myself and you will see that when you run it, but if there is anything I can change or add that would make you want to use it let me know. All input is welcome. Unzip the file and drop the folder in Applications/ To uninstall get rid of...
  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

    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...
  4. 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...
  5. 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.
  6. 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?
  7. zots

    A couple Q's

    I am rewriting an app in cocoa, that I originally wrote in RB. It looks like this: You enter whatever transactions and they will update in the lower window. Then you do file>>save and it write the preference file which looks like this: My first question; I want to know what you think...
  8. zots

    starwars in terminal

    Not too long ago somebody posted some Starwars thing you could watch in the terminal. I never had a chance to check it out, could someone repost whatever it was?
  9. zots

    file permissions

    I have two users set-up on OS X: admin and guest. I let people have the guest name/PW so they can FTP. Why is it that when I'm logged in as admin I can not put files in /Users/Guest/Public/? I know I can sudo mv the file from terminal but I would prefer to use the GUI. TIA
  10. zots

    file i/o help

    in my app i need to read/write data to some sort of preference file. NSFileHandle seems to be what i need. below i am trying to simply read all the data of the file into an NSData. the second line instantiates the NSFileHandle w/o error, but i am unsure of what the object/receiver(xxxxx)...
  11. zots

    break; from an action

    is there a way to break out of an action. for example when a button is clicked in my cocoa app, it calls an action with some if statements that check the values in textfields. if the values are invalid an alert comes up and then i want it to skip the rest of the code until the textfield is...
  12. zots

    NSMatrix properties

    in my project i am using 4 radio buttons in a column, when i click on them in IB, the classes panel shows that they are an NSMatrix object. so i looked up NSMatrix in PB help and it showed me all the methods available. in my program i will need to determine which radio button of the 4 is the...
  13. zots

    understanding objective c

    im trying to understand the syntax of objective c. right now i'm doing the cocoa tutorials on oreillynet http://www.oreillynet.com/pub/a/mac/2001/06/01/cocoa.html?page=2 my question is about this method declaration: - (NSData *)dataRepresentationOfType:(NSString *)aType can someone...
  14. zots

    /Users permissions

    i set-up a few user accounts for my friends to login to my computer. when they login they are taken to Users/Username but they can navigate anywhere on my computer. how can i prevent them from navigating behind their user folder?
  15. zots

    cgi-bin for WebServer/

    how can i configure my system for a cgi-bin in my webserver directory?
  16. zots

    desktop calendar hidden icon problem

    i chose the hide icon in dock option for dtcalendar. now i can not get to the preferences for the program. i tried deleting the dtcalendar.plist in my system-preferences but that only reset the color/font settings. does anyone know how i can revert back to dtcalendar so that i can see the...
  17. zots

    simple opengl program

    i'm beginning to read the opengl superbible. the first project just creates a window and renders it blue. on build i get a warning implicit declaration NSApplicationMain. on run i get a bunch of lines that say object released with no pool - just leaking. can anyone tell me what is wrong...
  18. zots

    gnome interface

    i see some people run xfree86 windowing system and gimp under that. is it possible to run gnome with osx like that? also, how do you run both windowing systems simultaneously as seen here http://www.xdarwin.org/images/OrobOSX-screenshot.jpg
  19. zots

    websharing doesnt want to start

    when i click the start web sharing button in the sharing system prefs the button goes grey and it says starting up forever. if i quit system prefs it goes back to being off, but i still cant start it. anyone?
  20. zots

    including headers

    where do you place your headers so that PB can find them at build?
Back
Top