Re: Why is my UIColor white actually gray?

2009-03-06 Thread Alex Kac

Could it be anti-aliased?

On Mar 6, 2009, at 2:57 PM, James Cicenia wrote:


Hello -

I have a table view with dynamic subclassed cells :

- (id)initWithFrame:(CGRect)aRect reuseIdentifier:(NSString  
*)identifier

{
if (self = [super initWithFrame:aRect reuseIdentifier:identifier])
{
self.selectionStyle = UITableViewCellSelectionStyleNone;
		[self setImage:[[UIImage imageNamed:@WF-MyLocBu- 
DistBack.png]autorelease]];


		UIImageView *imageView = [[UIImageView alloc] initWithImage:  
produceImage];

[self.contentView addSubview:imageView];
[imageView release];

CGRect frame = CGRectMake(60, 0, 140, 60);
produceName = [[UILabel alloc] initWithFrame:frame];
produceName.backgroundColor = [UIColor clearColor];
produceName.opaque = YES;
produceName.textAlignment = UITextAlignmentLeft;
produceName.textColor = [UIColor whiteColor];
produceName.font = [UIFont boldSystemFontOfSize:16];
[self.contentView addSubview:produceName];
[produceName release];

   }

   return self;
}


BUT The font is hard to read and actually gray and not white?

Thanks
James Cicenia
___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please 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:
http://lists.apple.com/mailman/options/cocoa-dev/alex%40webis.net

This email sent to a...@webis.net


Alex Kac - President and Founder
Web Information Solutions, Inc.

The optimist proclaims that we live in the best of all possible  
worlds; and the pessimist fears this is true.

-- James Clabell




___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please 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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Why is my UIColor white actually gray?

2009-03-06 Thread James Cicenia

Hmm,
What do you mean?

Thanks
James

On Mar 6, 2009, at 3:00 PM, Alex Kac wrote:


Could it be anti-aliased?

On Mar 6, 2009, at 2:57 PM, James Cicenia wrote:


Hello -

I have a table view with dynamic subclassed cells :

- (id)initWithFrame:(CGRect)aRect reuseIdentifier:(NSString  
*)identifier

{
if (self = [super initWithFrame:aRect reuseIdentifier:identifier])
{
self.selectionStyle = UITableViewCellSelectionStyleNone;
		[self setImage:[[UIImage imageNamed:@WF-MyLocBu- 
DistBack.png]autorelease]];


		UIImageView *imageView = [[UIImageView alloc] initWithImage:  
produceImage];

[self.contentView addSubview:imageView];
[imageView release];

CGRect frame = CGRectMake(60, 0, 140, 60);
produceName = [[UILabel alloc] initWithFrame:frame];
produceName.backgroundColor = [UIColor clearColor];
produceName.opaque = YES;
produceName.textAlignment = UITextAlignmentLeft;
produceName.textColor = [UIColor whiteColor];
produceName.font = [UIFont boldSystemFontOfSize:16];
[self.contentView addSubview:produceName];
[produceName release];

  }

  return self;
}


BUT The font is hard to read and actually gray and not white?

Thanks
James Cicenia
___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please 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:
http://lists.apple.com/mailman/options/cocoa-dev/alex%40webis.net

This email sent to a...@webis.net


Alex Kac - President and Founder
Web Information Solutions, Inc.

The optimist proclaims that we live in the best of all possible  
worlds; and the pessimist fears this is true.

-- James Clabell






___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please 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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Why is my UIColor white actually gray?

2009-03-06 Thread Alex Kac
Well if the text is anti-aliased (which it is by default in a  
UILabel), then the center of the text would be white, but the edges  
are gray to help make it smooth. If the font is small enough, it can  
look gray and not pure white.


On Mar 6, 2009, at 3:17 PM, James Cicenia wrote:


Hmm,
What do you mean?

Thanks
James

On Mar 6, 2009, at 3:00 PM, Alex Kac wrote:


Could it be anti-aliased?

On Mar 6, 2009, at 2:57 PM, James Cicenia wrote:


Hello -

I have a table view with dynamic subclassed cells :

- (id)initWithFrame:(CGRect)aRect reuseIdentifier:(NSString  
*)identifier

{
if (self = [super initWithFrame:aRect reuseIdentifier:identifier])
{
self.selectionStyle = UITableViewCellSelectionStyleNone;
		[self setImage:[[UIImage imageNamed:@WF-MyLocBu- 
DistBack.png]autorelease]];


		UIImageView *imageView = [[UIImageView alloc] initWithImage:  
produceImage];

[self.contentView addSubview:imageView];
[imageView release];

CGRect frame = CGRectMake(60, 0, 140, 60);
produceName = [[UILabel alloc] initWithFrame:frame];
produceName.backgroundColor = [UIColor clearColor];
produceName.opaque = YES;
produceName.textAlignment = UITextAlignmentLeft;
produceName.textColor = [UIColor whiteColor];
produceName.font = [UIFont boldSystemFontOfSize:16];
[self.contentView addSubview:produceName];
[produceName release];

 }

 return self;
}


BUT The font is hard to read and actually gray and not white?

Thanks
James Cicenia
___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please 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:
http://lists.apple.com/mailman/options/cocoa-dev/alex%40webis.net

This email sent to a...@webis.net


Alex Kac - President and Founder
Web Information Solutions, Inc.

The optimist proclaims that we live in the best of all possible  
worlds; and the pessimist fears this is true.

-- James Clabell








Alex Kac - President and Founder
Web Information Solutions, Inc.

I am not young enough to know everything.
--Oscar Wilde




___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please 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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Why is my UIColor white actually gray?

2009-03-06 Thread James Cicenia

I don't see any property for antialiasing on or off.

How do I turn it off to see?

On Mar 6, 2009, at 3:21 PM, Alex Kac wrote:

Well if the text is anti-aliased (which it is by default in a  
UILabel), then the center of the text would be white, but the edges  
are gray to help make it smooth. If the font is small enough, it can  
look gray and not pure white.


On Mar 6, 2009, at 3:17 PM, James Cicenia wrote:


Hmm,
What do you mean?

Thanks
James

On Mar 6, 2009, at 3:00 PM, Alex Kac wrote:


Could it be anti-aliased?

On Mar 6, 2009, at 2:57 PM, James Cicenia wrote:


Hello -

I have a table view with dynamic subclassed cells :

- (id)initWithFrame:(CGRect)aRect reuseIdentifier:(NSString  
*)identifier

{
if (self = [super initWithFrame:aRect reuseIdentifier:identifier])
{
self.selectionStyle = UITableViewCellSelectionStyleNone;
		[self setImage:[[UIImage imageNamed:@WF-MyLocBu- 
DistBack.png]autorelease]];


		UIImageView *imageView = [[UIImageView alloc] initWithImage:  
produceImage];

[self.contentView addSubview:imageView];
[imageView release];

CGRect frame = CGRectMake(60, 0, 140, 60);
produceName = [[UILabel alloc] initWithFrame:frame];
produceName.backgroundColor = [UIColor clearColor];
produceName.opaque = YES;
produceName.textAlignment = UITextAlignmentLeft;
produceName.textColor = [UIColor whiteColor];
produceName.font = [UIFont boldSystemFontOfSize:16];
[self.contentView addSubview:produceName];
[produceName release];

}

return self;
}


BUT The font is hard to read and actually gray and not white?

Thanks
James Cicenia
___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please 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:
http://lists.apple.com/mailman/options/cocoa-dev/alex%40webis.net

This email sent to a...@webis.net


Alex Kac - President and Founder
Web Information Solutions, Inc.

The optimist proclaims that we live in the best of all possible  
worlds; and the pessimist fears this is true.

-- James Clabell








Alex Kac - President and Founder
Web Information Solutions, Inc.

I am not young enough to know everything.
--Oscar Wilde






___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please 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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Why is my UIColor white actually gray?

2009-03-06 Thread Kyle Sluder
On Fri, Mar 6, 2009 at 4:37 PM, James Cicenia ja...@jimijon.com wrote:
 I don't see any property for antialiasing on or off.

 How do I turn it off to see?

You don't.  Aliased text is more commonly known as the jaggies and
can be particularly hard to read.

--Kyle Sluder
___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please 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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Why is my UIColor white actually gray?

2009-03-06 Thread David Duncan

On Mar 6, 2009, at 12:57 PM, James Cicenia wrote:

[self setImage:[[UIImage imageNamed:@WF-MyLocBu- 
DistBack.png]autorelease]];



Unrelated, but don't do this. You don't have ownership to the results  
of +imageNamed:, so you should not be releasing or autoreleasing it.

--
David Duncan
Apple DTS Animation and Printing

___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please 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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com