NSTextFieldCell?

Discussion in 'Mac Programming' started by Blakeasd, Feb 5, 2011.

  1. Blakeasd macrumors 6502a

    Joined:
    Dec 29, 2009
    #1
    Hello
    I am recreating the look of Apple's calculator app. I am using a method called
    NSDrawNinePartImage()
    I am trying to draw inside the text fields cell, so I created a rect called
    bounds It looks like this:
    Code:
    
    NSRect bounds = [self bounds];
    
    
    This is inside a NSTextFieldCell's drawRect: method. I get an error however saying method bounds not found. Why am I getting this error. Can I not get bounds in a NSTextFieldCell?
    Thanks
     
  2. Sydde macrumors 68020

    Sydde

    Joined:
    Aug 17, 2009
    #2
    Try the docs. IIRC, NSView subclasses have bounds, NSCell subclasses do not.

    Note that this might be an ideal situation to use a NSMatrix, you might check those out.
     

Share This Page