Re: Customised NSCell leaves dirty traces while scrolling

2010-11-24 Thread Josh Yu
>> Try overriding NSCell - drawWithFrame:inView: >> IIRC this is called before - drawInteriorWithFrame:InView: >> The default implementation of - drawWithFrame:inView: is perhaps the source >> of your unwanted drawing. >> Regards >> Jonathan Mitchell >Thanks Jonathan for your reply. I've tried

Scroll/Position Image in Scrollview that is smaller than the Scrollview

2010-11-24 Thread Hado Hein
I have a project where something like a 'put your face in someone elses head' "game" is wanted. So I did a UIScrollView in IB and in code I attach the UIImageView of the picture. That works fine. With multitouch enabled zooming works fine, so does positioning of the enlarged picture. Then I''ve p

Keeping data in sync across Mac and iPhone

2010-11-24 Thread Lorenzo Thurman
I have a customer request to sync application preferences between Macs and iPhone. The user may not have a MobileMe account, so Sync Services is not an option (or is it?). The user data would be stored in a plist on both platforms and I'm trying to find the best way to keep those in sync. Any and a

NSString/NSFont/Dingbats and the SnowFlake symbol

2010-11-24 Thread Stephen Blinkhorn
Hi all, This seems like a lame question to be fair. I would like to be able to access the snowflake symbol from the 'Zapf Dingbats' font and simply draw it into a custom control applying attributes like font colour to it. Charecter details are: Name: 'SNOWFLAKE' Unicode: 2744 UTF8: E2 9

Re: Keeping data in sync across Mac and iPhone

2010-11-24 Thread Nick Zitzmann
On Nov 24, 2010, at 9:28 AM, Lorenzo Thurman wrote: > I have a customer request to sync application preferences between Macs and > iPhone. The user may not have a MobileMe account, so Sync Services is not an > option (or is it?). Sadly, it isn't. There is no SyncServices framework on iOS. > The

Re: NSString/NSFont/Dingbats and the SnowFlake symbol

2010-11-24 Thread Nick Zitzmann
On Nov 24, 2010, at 10:46 AM, Stephen Blinkhorn wrote: > Hi all, > > This seems like a lame question to be fair. I would like to be able to > access the snowflake symbol from the 'Zapf Dingbats' font and simply draw it > into a custom control applying attributes like font colour to it. > > C

Re: Keeping data in sync across Mac and iPhone

2010-11-24 Thread Ross Carter
On Nov 24, 2010, at 12:48 PM, Nick Zitzmann wrote: > On Nov 24, 2010, at 9:28 AM, Lorenzo Thurman wrote: > >> I have a customer request to sync application preferences between Macs and >> iPhone. The user may not have a MobileMe account, so Sync Services is not an >> option (or is it?). > > Sadl

Re: NSString/NSFont/Dingbats and the SnowFlake symbol

2010-11-24 Thread Stephen Blinkhorn
On 24 Nov 2010, at 12:02, Nick Zitzmann wrote: On Nov 24, 2010, at 10:46 AM, Stephen Blinkhorn wrote: Hi all, This seems like a lame question to be fair. I would like to be able to access the snowflake symbol from the 'Zapf Dingbats' font and simply draw it into a custom control applyi

Re: NSString/NSFont/Dingbats and the SnowFlake symbol

2010-11-24 Thread Dave DeLong
You can also do: NSString * snowflake = @"\u2744"; Cheers, Dave On Nov 24, 2010, at 10:11 AM, Stephen Blinkhorn wrote: > > On 24 Nov 2010, at 12:02, Nick Zitzmann wrote: > >> >> On Nov 24, 2010, at 10:46 AM, Stephen Blinkhorn wrote: >> >>> Hi all, >>> >>> This seems like a lame question t

Re: NSString/NSFont/Dingbats and the SnowFlake symbol

2010-11-24 Thread Murat Konar
Beware the user that has removed all fonts that contain a snowflake... Maybe it would be better to "roll your own". _murat On Nov 24, 2010, at 10:14 AM, Dave DeLong wrote: > You can also do: > > NSString * snowflake = @"\u2744"; > > Cheers, > > Dave > > On Nov 24, 2010, at 10:11 AM, Stephen

Re: Customised NSCell leaves dirty traces while scrolling

2010-11-24 Thread Jerry Krinock
On 2010 Nov 24, at 01:08, Josh Yu wrote: > Problem solved. > > NEVER return float to heightOfRow - this will mess the whole table up. > Not sure if it's a cocoa bug - but return integer at all times. I presume you're speaking of the value returned by the delegate method -tableView:heightOfRow:

Re: NSString/NSFont/Dingbats and the SnowFlake symbol

2010-11-24 Thread Stephen Blinkhorn
On 24 Nov 2010, at 12:56, Murat Konar wrote: Beware the user that has removed all fonts that contain a snowflake... Yeah, I did wonder about such a thing. But why would anyone do a thing like that!? Stephen _murat On Nov 24, 2010, at 10:14 AM, Dave DeLong wrote: You can also do: N

Re: Re: Keeping data in sync across Mac and iPhone

2010-11-24 Thread lorenzo7620
On Nov 24, 2010 11:48am, Nick Zitzmann wrote: On Nov 24, 2010, at 9:28 AM, Lorenzo Thurman wrote: > I have a customer request to sync application preferences between Macs and > iPhone. The user may not have a MobileMe account, so Sync Services is not an > option (or is it?).

Re: NSString/NSFont/Dingbats and the SnowFlake symbol

2010-11-24 Thread Nick Zitzmann
On Nov 24, 2010, at 12:35 PM, Stephen Blinkhorn wrote: >> Beware the user that has removed all fonts that contain a snowflake... > > Yeah, I did wonder about such a thing. But why would anyone do a thing like > that!? I wouldn't worry about it in this case. Zapf Dingbats is a system font (in

Re: NSString/NSFont/Dingbats and the SnowFlake symbol

2010-11-24 Thread Kyle Sluder
On Wed, Nov 24, 2010 at 11:35 AM, Stephen Blinkhorn wrote: > On 24 Nov 2010, at 12:56, Murat Konar wrote: > >> Beware the user that has removed all fonts that contain a snowflake... > > Yeah, I did wonder about such a thing.  But why would anyone do a thing like > that!? Does it matter? If you n

iOS location enabled?

2010-11-24 Thread Rainer Standke
Hello, wondering if there is a way to detect whether the location services are enabled for the app. I am not after the global enabledness, but after the enabledness of my app. I imagine the OS stores this information somewhere, but can we get (read) access to that programmatically? Thanks, R

Re: iOS location enabled?

2010-11-24 Thread glenn andreas
On Nov 24, 2010, at 2:31 PM, Rainer Standke wrote: > Hello, > > wondering if there is a way to detect whether the location services are > enabled for the app. I am not after the global enabledness, but after the > enabledness of my app. > > I imagine the OS stores this information somewhere,

Re: NSString/NSFont/Dingbats and the SnowFlake symbol

2010-11-24 Thread Ricky Sharp
On Nov 24, 2010, at 1:58 PM, Kyle Sluder wrote: > On Wed, Nov 24, 2010 at 11:35 AM, Stephen Blinkhorn > wrote: >> On 24 Nov 2010, at 12:56, Murat Konar wrote: >> >>> Beware the user that has removed all fonts that contain a snowflake... >> >> Yeah, I did wonder about such a thing. But why wou

Image,text and button cell in outline view

2010-11-24 Thread Rajendran P
HI my requirement is simple I need a nscell to have image, text and button to be used in an outline view .I had a look at the imageandtext cell example , how to add an button to it ? any idea about how to convert image and text cell to add button ? any suggestion would be really help f

Re: Image,text and button cell in outline view

2010-11-24 Thread Robert Martin
Try googling NSButtonCells, or look them up in the documentation. On Nov 24, 2010, at 7:08 PM, Rajendran P wrote: > HI >my requirement is simple I need a nscell to have image, text and button to > be used in an outline view .I had a look at the imageandtext cell example , > how to add an

Re: Image,text and button cell in outline view

2010-11-24 Thread Joar Wingfors
On 24 nov 2010, at 16.08, Rajendran P wrote: >my requirement is simple I need a nscell to have image, text and button to > be used in an outline view .I had a look at the imageandtext cell example , > how to add an button to it ? any idea about how to convert image and text > cell > to

Re: iOS location enabled?

2010-11-24 Thread Rainer Standke
Thanks Glenn, I was afraid so. Rainer On Nov 24, 2010, at 12:50 , glenn andreas wrote: > > On Nov 24, 2010, at 2:31 PM, Rainer Standke wrote: > >> Hello, >> >> wondering if there is a way to detect whether the location services are >> enabled for the app. I am not after the global enabledn

Re: Image,text and button cell in outline view

2010-11-24 Thread Rajendran P
HI Thank you , the Photosearch sample solved my problem . P.Rajendran or Raju (for further details contact me ) From: Joar Wingfors To: Rajendran P Cc: cocoa-dev@lists.apple.com Sent: Wed, 24 November, 2010 8:12:47 PM Subject: R