• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSTextField Image
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTextField Image


  • Subject: Re: NSTextField Image
  • From: "Michael Novak" <email@hidden>
  • Date: Thu, 12 Apr 2007 12:16:13 -0400

curious question....

when subclassing something, how do you organize the subclasses? Do you keep
them in separate files or add them to the AppController or MyDocument files?

might be a stupid question but just curious.

Cheers,
Mike

On 4/12/07, Michael Watson <email@hidden> wrote:

i. Savant has answered this correctly, I believe:

Subclass NSTextFieldCell, override the appropriate drawing methods,
draw your image where you want inside the cell, then pass an adjusted
drawing rect to super's implementation so super doesn't draw over the
image.


-- m-s

On 12 Apr, 2007, at 12:05, Michael Novak wrote:

> What about over the TextField? I would like it clickable so you
> think that
> would be good? Seeing the image is transparent it would appear to
> be in the
> TextField.
>
> Is this a risky hack or actually a suitable way to get this effect?
>
> Cheers,
> Mike
>
> On 4/12/07, Kevin Hoffman <email@hidden> wrote:
>>
>> Do you need it to be physically _in_ the text field? Without having
>> tried this (no access to a Mac at the moment), I wonder if you
>> couldn't
>> simply put the image _beneath_ the text field and drop the text
>> field's
>> opacity to allow the image to show through.
>>
>> -----Original Message-----
>> From: cocoa-dev-bounces+khoffman=email@hidden
>> [mailto:cocoa-dev-bounces+khoffman=email@hidden] On
>> Behalf Of Michael Novak
>> Sent: Thursday, April 12, 2007 11:09 AM
>> To: email@hidden
>> Subject: NSTextField Image
>>
>> Hello All,
>>        I am interesting in have a small graphic displayed in a
>> NSTextField.
>> Can anybody point me in a direction or maybe where I can find info in
>> the
>> docs? I went looking around but nothing I saw seemed to be
>> appropriate
>> for
>> what I am after. Thanks!
>>
>> Cheers,
>> Mike
>> _______________________________________________
>>
>> Cocoa-dev mailing list (email@hidden)
>>
>> Do not post admin requests or moderator comments to the list.
>> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
>>
>> Help/Unsubscribe/Update your Subscription:
>> 40liquidnet.co
>> m
>>
>> This email sent to email@hidden
>>
>>
>>
> _______________________________________________
>
> Cocoa-dev mailing list (email@hidden)
>
> Do not post admin requests or moderator comments to the list.
> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
>
> Help/Unsubscribe/Update your Subscription:
> 40bungie.org
>
> This email sent to email@hidden


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: NSTextField Image
      • From: "I. Savant" <email@hidden>
References: 
 >NSTextField Image (From: "Michael Novak" <email@hidden>)
 >RE: NSTextField Image (From: "Kevin Hoffman" <email@hidden>)
 >Re: NSTextField Image (From: "Michael Novak" <email@hidden>)
 >Re: NSTextField Image (From: Michael Watson <email@hidden>)

  • Prev by Date: Re: NSTextField Image
  • Next by Date: Utility Panel and AppleScriptKit.framework issue
  • Previous by thread: Re: NSTextField Image
  • Next by thread: Re: NSTextField Image
  • Index(es):
    • Date
    • Thread