camera shutter sound is not eared the first time.

2014-11-24 Thread Luca Ciciriello
Hi all.I've implemented an app using the camera (UIImagePickerController). 
After I've updated my system to iOS 8.1.1 on iPhone 5S, the behaviour of my app 
is changed. When I take the first picture the sound of the camera shutter is 
not played. After the first one, the shutter sound is played normally for the 
next clicks on the shutter button.
I'm using Xcode 6.1 
Any Idea?
Luca.
  
___

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

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

iAd banner on iOS 7 simulator

2013-09-21 Thread Luca Ciciriello
Hi all.
Rebuilding a project using an iAd banner with the new Xcode and iOS 7 
simulator, I'm unable to visualise the banner on the simulator. Is this a known 
issue?

Luca


--
All problems in computer science can be solved by another level of indirection, 
except for the problem of too many layers of indirection.

– David J. Wheeler

___

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

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

Re: OS X 10.8.5 Can't detect FactTime Camera on new macbook air

2013-09-17 Thread Luca Ciciriello
Have you tried to do a hardware reset of your macbook?

I had the same problem passing from 10.8.3 to 10.8.4 and a hardware reset has 
solved my problem. 
The problem is I've no idea how to perform a hardware reset on a MacBook Air :-)

Luca.

--
All problems in computer science can be solved by another level of indirection, 
except for the problem of too many layers of indirection.

– David J. Wheeler

On Sep 17, 2013, at 3:26 PM, Zhuang Xu stron...@gmail.com wrote:

 recently, I got some feedback about my app can't user camera on new macbook
 air(2013)  when update OS Version to OS X 10.8.5. when debugged i found
 calling
 
 [QTCaptureDevice inputDevices] only get Audio Device, no Video Device. Is
 there something change about QTKit framework in OS X 10.8.5?
 
 does somebody have the same problem? thanks a lot
 -- 
 Best Regards, strongxu
 ___
 
 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:
 https://lists.apple.com/mailman/options/cocoa-dev/luca_ciciriello%40hotmail.com
 
 This email sent to luca_cicirie...@hotmail.com

___

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

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

Re: Number of chars

2013-03-21 Thread Luca Ciciriello
No problem :-)

Luca

On Mar 21, 2013, at 5:59 PM, Luther Baker lutherba...@gmail.com wrote:

 I apologize for leading you the wrong way Luca!
 
 -Luther
 
 
 
 On Thu, Mar 21, 2013 at 9:46 AM, Luca Ciciriello 
 luca_cicirie...@hotmail.com wrote:
 Ok, thanks.
 
 Luca.
 
 On Mar 21, 2013, at 3:43 PM, Glenn L. Austin gl...@austin-soft.com wrote:
 
 
  On Mar 21, 2013, at 2:34 AM, Jean-Daniel Dupas devli...@shadowlab.org 
  wrote:
 
 
  Le 21 mars 2013 à 09:27, Luca Ciciriello luca_cicirie...@hotmail.com a 
  écrit :
 
  Hi all.
  I'm using in my iOS project some Objective-C++ modules. Here I have some 
  conversion from NSString to C++11 std::string. After this conversion I 
  found (correctly) in my std::string some 2-byte characters.
  My question is: How can I count the number of chars and not the numbers 
  of byte in my std::string?
 
 
  Don't use std::string to store unicode string. They are not design to 
  support such content.
 
  You can use std::wstring instead.
 
 
  Actually, std::string works *just fine* for UTF-8 strings.
 
  It's just that, in Unicode, 1 character doesn't necessarily fit in 1 byte.  
  Also, you can't easily do truncation of strings (you might be truncating 
  the string in the middle of a multi-byte sequence -- which is true in 
  pretty much every encoding except UCS-4).
 
  UTF-8 is relatively easy to work with, however.  You look at the previous 
  byte in the string to see if your current character is part of a multi-byte 
  sequence or not -- and keep going back until you find one that doesn't have 
  the high-bit set, and that's the last character of the previous sequence.  
  Of course, that go back doesn't mean anything if you're already at the 
  first byte in your string...
 
  --
  Glenn L. Austin, Computer Wizard and Race Car Driver 
  http://www.austin-soft.com
 
 
 
 
 ___
 
 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:
 https://lists.apple.com/mailman/options/cocoa-dev/lutherbaker%40gmail.com
 
 This email sent to lutherba...@gmail.com
 

___

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

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

UIActivityIndicatorView

2013-01-15 Thread Luca Ciciriello
Hi all.

I use an activity indicator in order to show, in my UIViewController, a work 
in progress activity.

here my code 

- (void)myMethod
{
[[self activityElab] setHidden:NO];
[[self activityElab] startAnimating];

// here I call a very CPU-intensive method. 

[[self activityElab] setHidden:YES];
[[self activityElab] stopAnimating];
}

My problem is that nothing appear (activity indicator) when myMethod is called. 
Now if I remove (comment) the call to my intensive activity method all is 
working fine.

Any idea? I've tested this code both on the simulator and on a device (iPad) 
with  iOS 5.0 and iOS 6.0
My environment is Xcode 4.5.2 on OS X 10.8.2.

Thanks in advance.

Luca.
___

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

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


Re: UIActivityIndicatorView

2013-01-15 Thread Luca Ciciriello
Understood, thanks.

Luca.

On Jan 15, 2013, at 4:31 PM, Uli Kusterer witness.of.teacht...@gmx.net wrote:

 On Jan 15, 2013, at 3:18 PM, Luca Ciciriello luca_cicirie...@hotmail.com 
 wrote:
 I use an activity indicator in order to show, in my UIViewController, a 
 work in progress activity.
 
 here my code 
 
 - (void)myMethod
 {
  [[self activityElab] setHidden:NO];
  [[self activityElab] startAnimating];
 
  // here I call a very CPU-intensive method. 
 
  [[self activityElab] setHidden:YES];
  [[self activityElab] stopAnimating];
 }
 
 My problem is that nothing appear (activity indicator) when myMethod is 
 called. Now if I remove (comment) the call to my intensive activity method 
 all is working fine.
 
 Any idea? I've tested this code both on the simulator and on a device (iPad) 
 with  iOS 5.0 and iOS 6.0
 My environment is Xcode 4.5.2 on OS X 10.8.2.
 
 
 That won't work. Views are only redrawn once your method returns. So while 
 your activity indicator is shown and hidden, nobody will ever see it. If you 
 do activities that take a long time, you'd better split them up into smaller 
 NSOperations which let the main thread redraw the UI in between each 
 operation. Or if you have to, use a separate thread, but that's hard to get 
 right, and easy to get wrong in a way that causes random hard-to-find crashes.
 
 Cheers,
 -- Uli Kusterer
 The Witnesses of TeachText are everywhere...
 http://www.zathras.de
 
 


___

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

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


lambda in C++

2012-10-17 Thread Luca Ciciriello
Hi All

Is there some WWDC2012 video section talking about lambda in C++ 0x11?

Thanks.

Luca.
___

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

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


Re: lambda in C++

2012-10-17 Thread Luca Ciciriello
I've read that Apple LLVM supports many specific features of the C++ new 
standard including lambda functions.

Luca.

On Oct 17, 2012, at 10:36 AM, Mikkel Islay my.inputstr...@googlemail.com 
wrote:

 Luca,
 
 On 17 Oct 2012, at 10:19, Luca Ciciriello wrote:
 
 Is there some WWDC2012 video section talking about lambda in C++ 0x11?
 
 I can't imagine why WWDC-talks would touch specifically on new language 
 features in C++.
 Are you looking for information on lambdas in relation to Apple's 
 technologies, or on the feature in general?
 
 Mikkel


___

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

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


Re: lambda in C++

2012-10-17 Thread Luca Ciciriello
Thanks

Luca.

On Oct 17, 2012, at 10:58 AM, Jean-Daniel Dupas devli...@shadowlab.org wrote:

 
 If you want to see good conferences about C++11, you may have a look at the 
 Going Native 2012 videos.
 While this is a Microsoft event, they mostly talk only about standard C++ and 
 it even include a clang specific conference.
 
 http://channel9.msdn.com/Events/GoingNative/GoingNative-2012
 
 Le 17 oct. 2012 à 10:44, Luca Ciciriello luca_cicirie...@hotmail.com a 
 écrit :
 
 I've read that Apple LLVM supports many specific features of the C++ new 
 standard including lambda functions.
 
 Luca.
 
 On Oct 17, 2012, at 10:36 AM, Mikkel Islay my.inputstr...@googlemail.com 
 wrote:
 
 Luca,
 
 On 17 Oct 2012, at 10:19, Luca Ciciriello wrote:
 
 Is there some WWDC2012 video section talking about lambda in C++ 0x11?
 
 I can't imagine why WWDC-talks would touch specifically on new language 
 features in C++.
 Are you looking for information on lambdas in relation to Apple's 
 technologies, or on the feature in general?
 
 Mikkel
 
 
 ___
 
 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:
 https://lists.apple.com/mailman/options/cocoa-dev/devlists%40shadowlab.org
 
 This email sent to devli...@shadowlab.org
 
 -- Jean-Daniel
 
 
 
 
 


___

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

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

setting font

2012-08-06 Thread Luca Ciciriello
Hi All.
I'm trying to set a specific font in my UITextView.

The font is Chalkboard SE Regular and my code is 

[[self textView] setFont:[UIFont fontWithName:@Chalkboard se regular 
size:39.0f]];

but nothing appear un my UITextView.

Where is my mistake?

Luca.
___

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

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


gesture

2012-08-06 Thread Luca Ciciriello
Hi All.
Probably my problem is very stupid with a very immediate answer, but I'm very 
new using storyboard.

I've have 2 pages. in the first page I've the following code:

@property(strong, nonatomic) IBOutlet UISwipeGestureRecognizer 
*swipeGestureNext;

1)  swipeGestureNext = [[UISwipeGestureRecognizer alloc] initWithTarget:self 
action:nil];
2)  [swipeGestureNext setDirection:UISwipeGestureRecognizerDirectionLeft];
3)  [[self view] addGestureRecognizer:swipeGestureNext];

Then I've used a Swipe Gesture Recognizer (connected with swipeGestureNext) 
and I've connected it, in the storyboard, with the second page.

My problem is that the only direction recognised is from right to left.

Where is my mistake?

Thanks for any answer.

Luca.


___

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

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


Re: setting font

2012-08-06 Thread Luca Ciciriello
Thanks, You are right. My problem was in the name of the font 
(@ChalkboardSE-Regular)

Luca.


On Aug 6, 2012, at 7:30 PM, Jens Alfke j...@mooseyard.com wrote:

 
 On Aug 6, 2012, at 1:05 AM, Luca Ciciriello luca_cicirie...@hotmail.com 
 wrote:
 
 [[self textView] setFont:[UIFont fontWithName:@Chalkboard se regular 
 size:39.0f]];
 
 Make sure that UIFont call isn't returning nil. In my experience, APIs that 
 look up fonts by name are very picky about the name (for instance, you 
 lowercased SE and didn't capitalize Regular). Moreover, the internal name 
 may not match the displayed name.
 
 —Jens

___

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

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

Core Image

2012-06-15 Thread Luca Ciciriello
Hi All.
I'm porting some  CoreImage code from MacOS X to iOS and I'm unable to find the 
key KCGImagePropertyOrientation.

My doubt is: Is this key available in iOS?

I'm using iOS 5.1 with Xcode 4.3.3

Thanks in advance for any answer.

Luca.

___

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

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


Re: Core Image

2012-06-15 Thread Luca Ciciriello
I build using CoreImage.framework and including CoreImage/CoreImage.h  header
The BASE SDK is 5.1 and the Deployment Target is 5.1

The error I get is Use of undeclared identifier KCGImagePropertyOrientation.

Is there some other header I've to include?

Luca.


On Jun 15, 2012, at 2:41 PM, Roland King wrote:

 It's in the documentation as iOS4.0 and later and it's in the header file too
 
 grep kCGImagePropertyOrientation *
 CGImageProperties.h:IMAGEIO_EXTERN const CFStringRef 
 kCGImagePropertyOrientation  IMAGEIO_AVAILABLE_STARTING(__MAC_10_4, 
 __IPHONE_4_0);
 
 Did you pick the right framework? It's normally, and indeed in this case is, 
 listed at the top of the documentation for the symbol. 
 
 On Jun 15, 2012, at 8:24 PM, Luca Ciciriello wrote:
 
 Hi All.
 I'm porting some  CoreImage code from MacOS X to iOS and I'm unable to find 
 the key KCGImagePropertyOrientation.
 
 My doubt is: Is this key available in iOS?
 
 I'm using iOS 5.1 with Xcode 4.3.3
 
 Thanks in advance for any answer.
 
 Luca.
 
 ___
 
 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:
 https://lists.apple.com/mailman/options/cocoa-dev/rols%40rols.org
 
 This email sent to r...@rols.org
 
 


___

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

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


Re: Core Image

2012-06-15 Thread Luca Ciciriello
Yes this is the problem.

Thanks

Luca.
On Jun 15, 2012, at 4:03 PM, Fritz Anderson wrote:

 
 On Fri, June 15, 2012 7:24 am, Luca Ciciriello wrote:
 Hi All.
 I'm porting some  CoreImage code from MacOS X to iOS and I'm unable to
 find the key KCGImagePropertyOrientation.
 
 I notice that you keep spelling it KCGImagePropertyOrientation. The proper
 spelling is kCGImagePropertyOrientation, with a lower-case k.
 
-- F
 
 -- 
 Fritz Anderson
 Xcode 4 Unleashed - Classics professors ask for it by name.
 x4u.manoverboard.org
 
 
 

___

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

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


Accelerate framework

2012-05-12 Thread Luca Ciciriello
Hi All. A simple question.
Using the accelerate framework in iOS 5.1 I've imported the header 
Accelerate/Accelerate.h and in my code I'm using the line:

uint_8 kernel = {-2, -2, 0, -2, 6, 0, 0, 0, 0};

My problem is that I've got the error:

Use of undeclared identifier uint_8.

Which is the header I've to use for uint_8?

Thanks in advance for any answer.

Luca.


___

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

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


Re: Accelerate framework

2012-05-12 Thread Luca Ciciriello
Yes You are right. It was a my stupid syntax error.

L.

On May 12, 2012, at 10:34 AM, Ken Thomases wrote:

 On May 12, 2012, at 3:25 AM, Luca Ciciriello wrote:
 
 Using the accelerate framework in iOS 5.1 I've imported the header 
 Accelerate/Accelerate.h and in my code I'm using the line:
 
 uint_8 kernel = {-2, -2, 0, -2, 6, 0, 0, 0, 0};
 
 My problem is that I've got the error:
 
 Use of undeclared identifier uint_8.
 
 Which is the header I've to use for uint_8?
 
 Do you perhaps mean uint8_t?  Certainly, the Accelerate framework won't 
 require you to use any type which it hasn't included the definition for.
 
 Regards,
 Ken
 
 


___

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

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


Re: Accelerate framework

2012-05-12 Thread Luca Ciciriello
Now my problem is:
How can I rebuild an UIImage from the output of the vImageConvolve_ARGB 
elaboration?
I can't find any code sample on this.

L.
On May 12, 2012, at 11:16 AM, Luca Ciciriello wrote:

 Yes You are right. It was a my stupid syntax error.
 
 L.
 
 On May 12, 2012, at 10:34 AM, Ken Thomases wrote:
 
 On May 12, 2012, at 3:25 AM, Luca Ciciriello wrote:
 
 Using the accelerate framework in iOS 5.1 I've imported the header 
 Accelerate/Accelerate.h and in my code I'm using the line:
 
 uint_8 kernel = {-2, -2, 0, -2, 6, 0, 0, 0, 0};
 
 My problem is that I've got the error:
 
 Use of undeclared identifier uint_8.
 
 Which is the header I've to use for uint_8?
 
 Do you perhaps mean uint8_t?  Certainly, the Accelerate framework won't 
 require you to use any type which it hasn't included the definition for.
 
 Regards,
 Ken
 
 
 
 
 ___
 
 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:
 https://lists.apple.com/mailman/options/cocoa-dev/luca_ciciriello%40hotmail.com
 
 This email sent to luca_cicirie...@hotmail.com
 

___

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

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


Audio question

2012-03-31 Thread Luca Ciciriello
Hi All,
I'm using an AVAudioPlayer object to run some Garage Band loop in my App. My 
question is how to delete the object when I live the view.
I've set to stop the AVAudioPlayer object when I live to stop the music, but 
the object is not destroyed. 
Have I to set object=nil; befor exit?
Anyway, can I use a garage band loop in my commercial App?

Thanks for any answer.

Luca.
___

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

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


iPad 5.1 simulator

2012-03-31 Thread Luca Ciciriello
Is it possible to use MPMediaPickerController with the iOS 5.x simulator?

I've used it but I get the following exception: 

'NSInternalInconsistencyException', reason: 'Unable to load iPodUI.framework'

The code I've used is: 

MPMediaPickerController *picker = [[MPMediaPickerController alloc] 
initWithMediaTypes:MPMediaTypeAny];
[picker setDelegate:self];
[picker setAllowsPickingMultipleItems:YES];
[picker setPrompt:@Background Music];

[self presentModalViewController:picker animated:YES];

Thanks in advance for any answer.

Luca.
___

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

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


background image

2012-03-09 Thread Luca Ciciriello
Hi All.
Is there a way from iOS code to set an UIImage as iPad desktop wallpaper?

Luca.
___

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

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


iOS API

2012-02-01 Thread Luca Ciciriello
Hi All.
Is there a way to programmatically shutting off the iPhone? 
In other world I'm searching a public API to control the power manager of the 
iPhone. 
Searching on iOS documentation I haven't found nothing (only thing I can do is 
monitoring the status of the battery.) and this make me think that shutting off 
the iPhone from an app isn't allowed (nothing found about that in App Store 
Review Guidelines).

Thanks in advance for any answer.

Luca.   
___

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

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


MapKit

2011-11-27 Thread Luca Ciciriello
Hi All.
Is there a way to load a custom map (instead of Google map) in the MKMapView 
component?

Thanks.

Luca.___

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


Text to speech

2011-11-18 Thread Luca Ciciriello
Hi All

Is there in iOS 5 something like  COCOA NSSpeechSynthesizer to be used to read 
some text on iPhone?

Thanks for any answer.

Luca.___

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: Natural language

2011-11-17 Thread Luca Ciciriello
Hi, All.
I've implemented some sample code using NSLinguisticTagger class and i've found 
some weird behavior.
I'me using the following code to analyze a simple english phrase:

NSRange textrange = NSMakeRange(0, [phrase length]);
[tagger enumerateTagsInRange:textrange
  scheme:NSLinguisticTagSchemeLexicalClass 
 options:0 
 usingBlock:
^(NSString *wordType, 
  NSRange wordRange, 
  NSRange sentenceRange, BOOL *stop) 
  {
if(wordType == NSLinguisticTagNoun)
{
   // Show tag
}
if(wordType == NSLinguisticTagPronoun)
{
   // Show tag
}
if(wordType == 
NSLinguisticTagDeterminer)
{
   // Show tag
}

…etc for each NSLinguisticSomething 
constant.

  }];

If I analyze the phrase: I am a woman I got the correct result :

I -- pronoun
am -- verb
A -- determiner
woman -- noun

but if i analyze the phrase: I am a man I got the result:

I -- otherword
am -- otherword
a -- otherword
man -- otherword.

I've initialized the NSLinguisticTagger class as follow: 

NSArray *tagScheme = [NSArray 
arrayWithObjects:NSLinguisticTagSchemeLexicalClass,
   
NSLinguisticTagSchemeNameType,
   
NSLinguisticTagSchemeLanguage, nil];
tagger = [[NSLinguisticTagger alloc] initWithTagSchemes:tagScheme 
options:0];


So where is my mistake? Why I get an error if I try to analyze a simple phrase 
like I am a man?
The behavior is the same on the device (iOS 5.0.1) and on the simulator. I'm 
using MaOS X 10.7.2 with Xcode 4.2.

Thanks for any answer.

Luca.

On Nov 14, 2011, at 5:56 PM, Douglas Davidson wrote:

 There is also some documentation available in the Foundation release notes 
 for Lion 
 http://developer.apple.com/library/mac/#releasenotes/Cocoa/Foundation.html 
 and the NSLinguisticTagger class reference 
 http://developer.apple.com/library/mac/#documentation/Cocoa/Reference/NSLinguisticTagger_Class/Reference/Reference.html.
   If you have specific questions, you can send them to the list.
 
 Douglas Davidson
 
 On Nov 14, 2011, at 7:02 AM, Luca Ciciriello wrote:
 
 Yes, indeed!!!
 
 On Nov 14, 2011, at 2:56 PM, Eric E. Dolecki wrote:
 
 Just started watching this video - it's awesome.
 
 - Eric
 
 On Mon, Nov 14, 2011 at 3:32 AM, Luca Ciciriello 
 luca_cicirie...@hotmail.com wrote:
 
 Thanks Vincent, that should solve my problems.
 Luca.
 
 Subject: Re: Natural language
 From: mailingli...@satsumac.com
 Date: Sun, 13 Nov 2011 21:37:01 +0100
 CC: cocoa-dev@lists.apple.com
 To: luca_cicirie...@hotmail.com
 
 The Advanced Text Processing session from WWDC '11 should be of help.
 https://developer.apple.com/videos/wwdc/2011/
 
 On Nov 13, 2011, at 4:31 PM, Luca Ciciriello wrote:
 
 Hi All.
 Any one knows how to use the class NSLinguisticTagger in order to 
 decompose a phrase in its grammar components (name, adjective, verb, 
 etc.)?
 
 Thanks for any answer.
 
 Luca

 ___
 
 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/edolecki%40gmail.com
 
 This email sent to edole...@gmail.com
 
 
 ___
 
 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/ddavidso%40apple.com
 
 This email sent to ddavi...@apple.com
 
 ___
 
 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/luca_ciciriello%40hotmail.com
 
 This email sent to luca_cicirie...@hotmail.com

Re: Natural language

2011-11-17 Thread Luca Ciciriello
Thanks for your answer.
This solve my problem :-)

Luca.

On Nov 17, 2011, at 5:39 PM, Douglas Davidson wrote:

 
 On Nov 17, 2011, at 7:51 AM, Luca Ciciriello wrote:
 
 but if i analyze the phrase: I am a man I got the result:
 
 I -- otherword
 am -- otherword
 a -- otherword
 man -- otherword.
 
 I've initialized the NSLinguisticTagger class as follow: 
 
 NSArray *tagScheme = [NSArray 
 arrayWithObjects:NSLinguisticTagSchemeLexicalClass,

 NSLinguisticTagSchemeNameType,

 NSLinguisticTagSchemeLanguage, nil];
 tagger = [[NSLinguisticTagger alloc] initWithTagSchemes:tagScheme 
 options:0];
 
 
 So where is my mistake? Why I get an error if I try to analyze a simple 
 phrase like I am a man?
 The behavior is the same on the device (iOS 5.0.1) and on the simulator. I'm 
 using MaOS X 10.7.2 with Xcode 4.2.
 
 Those are the results you will get if you don't specify the language of the 
 text, and the system concludes that there is insufficient text to confidently 
 identify the language.  If there were additional text in the string you 
 passed in, it would be used to help identify the language.  Alternatively, if 
 you know the language of the text, you can specify it using 
 setOrthography:range:.  That was shown in the final example in the WWDC 
 presentation, in the following form:
 
 [tagger setOrthography:[NSOrthography 
 orthographyWithDominantScript:@Latn languageMap:[NSDictionary 
 dictionaryWithObject:[NSArray arrayWithObject:@en] forKey:@Latn]] 
 range:NSMakeRange(0, length)];
 
 which specifies that the text is to be treated as being entirely in English.
 
 Douglas Davidson
 

___

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: Natural language

2011-11-14 Thread Luca Ciciriello

Thanks Vincent, that should solve my problems.
Luca.

 Subject: Re: Natural language
 From: mailingli...@satsumac.com
 Date: Sun, 13 Nov 2011 21:37:01 +0100
 CC: cocoa-dev@lists.apple.com
 To: luca_cicirie...@hotmail.com
 
 The Advanced Text Processing session from WWDC '11 should be of help.
 https://developer.apple.com/videos/wwdc/2011/
 
 On Nov 13, 2011, at 4:31 PM, Luca Ciciriello wrote:
 
  Hi All.
  Any one knows how to use the class NSLinguisticTagger in order to decompose 
  a phrase in its grammar components (name, adjective, verb, etc.)?
  
  Thanks for any answer.
  
  Luca
  
___

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: Natural language

2011-11-14 Thread Luca Ciciriello
Yes, indeed!!!

On Nov 14, 2011, at 2:56 PM, Eric E. Dolecki wrote:

 Just started watching this video - it's awesome.
 
 - Eric
 
 On Mon, Nov 14, 2011 at 3:32 AM, Luca Ciciriello 
 luca_cicirie...@hotmail.com wrote:
 
 Thanks Vincent, that should solve my problems.
 Luca.
 
  Subject: Re: Natural language
  From: mailingli...@satsumac.com
  Date: Sun, 13 Nov 2011 21:37:01 +0100
  CC: cocoa-dev@lists.apple.com
  To: luca_cicirie...@hotmail.com
 
  The Advanced Text Processing session from WWDC '11 should be of help.
  https://developer.apple.com/videos/wwdc/2011/
 
  On Nov 13, 2011, at 4:31 PM, Luca Ciciriello wrote:
 
   Hi All.
   Any one knows how to use the class NSLinguisticTagger in order to 
   decompose a phrase in its grammar components (name, adjective, verb, 
   etc.)?
  
   Thanks for any answer.
  
   Luca
  
 ___
 
 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/edolecki%40gmail.com
 
 This email sent to edole...@gmail.com
 

___

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: Natural language

2011-11-14 Thread Luca Ciciriello
Thanks.
These references are very useful and Your video (session 128) with Jennifer 
Moore has been really illuminating.

Thanks again.

Luca.

On Nov 14, 2011, at 5:56 PM, Douglas Davidson wrote:

 There is also some documentation available in the Foundation release notes 
 for Lion 
 http://developer.apple.com/library/mac/#releasenotes/Cocoa/Foundation.html 
 and the NSLinguisticTagger class reference 
 http://developer.apple.com/library/mac/#documentation/Cocoa/Reference/NSLinguisticTagger_Class/Reference/Reference.html.
   If you have specific questions, you can send them to the list.
 
 Douglas Davidson
 
 On Nov 14, 2011, at 7:02 AM, Luca Ciciriello wrote:
 
 Yes, indeed!!!
 
 On Nov 14, 2011, at 2:56 PM, Eric E. Dolecki wrote:
 
 Just started watching this video - it's awesome.
 
 - Eric
 
 On Mon, Nov 14, 2011 at 3:32 AM, Luca Ciciriello 
 luca_cicirie...@hotmail.com wrote:
 
 Thanks Vincent, that should solve my problems.
 Luca.
 
 Subject: Re: Natural language
 From: mailingli...@satsumac.com
 Date: Sun, 13 Nov 2011 21:37:01 +0100
 CC: cocoa-dev@lists.apple.com
 To: luca_cicirie...@hotmail.com
 
 The Advanced Text Processing session from WWDC '11 should be of help.
 https://developer.apple.com/videos/wwdc/2011/
 
 On Nov 13, 2011, at 4:31 PM, Luca Ciciriello wrote:
 
 Hi All.
 Any one knows how to use the class NSLinguisticTagger in order to 
 decompose a phrase in its grammar components (name, adjective, verb, 
 etc.)?
 
 Thanks for any answer.
 
 Luca

 ___
 
 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/edolecki%40gmail.com
 
 This email sent to edole...@gmail.com
 
 
 ___
 
 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/ddavidso%40apple.com
 
 This email sent to ddavi...@apple.com
 
 ___
 
 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/luca_ciciriello%40hotmail.com
 
 This email sent to luca_cicirie...@hotmail.com
 

___

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


Natural language

2011-11-13 Thread Luca Ciciriello
Hi All.
Any one knows how to use the class NSLinguisticTagger in order to decompose a 
phrase in its grammar components (name, adjective, verb, etc.)?

Thanks for any answer.

Luca.___

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


CoreBluetooth framework

2011-10-29 Thread Luca Ciciriello
Hai List.
Is there someone knowing where I can find some line of sample code about 
CoreBluetooth framework?

Thanks in advance for any answer.

Luca.___

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


newbie question

2011-03-18 Thread Luca Ciciriello
Hi All. Im' new in Cocoa and Cocoa touch programming.
My question is: How can I make the keyboard disappear when I use a UITextView 
conroller?

In my class I've a Text field and a Text view controller and in my declaration 
I'v added the delegates: UITextFieldDelegate, UITextViewDelegate
now In the case of UITextField I've used the method : 

- (BOOL)textFieldShouldReturn:(UITextField *)textField

but there isn't nothing of similar for resign the first responder in the case 
of UITextView.

Thanks in advance.

Luca.___

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: newbie question (SOLVED)

2011-03-18 Thread Luca Ciciriello
Sorry for this question. I've find out how to solve my problem in apple 
documentation. At my first reading I'd missed it.

Luca.

On Mar 18, 2011, at 4:17 PM, Luca Ciciriello wrote:

 Hi All. Im' new in Cocoa and Cocoa touch programming.
 My question is: How can I make the keyboard disappear when I use a UITextView 
 conroller?
 
 In my class I've a Text field and a Text view controller and in my 
 declaration I'v added the delegates: UITextFieldDelegate, UITextViewDelegate
 now In the case of UITextField I've used the method : 
 
 - (BOOL)textFieldShouldReturn:(UITextField *)textField
 
 but there isn't nothing of similar for resign the first responder in the case 
 of UITextView.
 
 Thanks in advance.
 
 Luca.___
 
 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/luca_ciciriello%40hotmail.com
 
 This email sent to luca_cicirie...@hotmail.com
 

___

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: Lyrics in an application

2010-09-21 Thread Luca Ciciriello

Hi. I've found that SQLite is very useful in this kind of Mac|iPhone|iPad 
applications. Is easy to use, fast and can contain a huge quantity of data in a 
single not to big file.

 

Using Google you can find many examples how to use in Xcode SQLite and 
Objective-C. This one:

 

http://thinkitdifferently.wordpress.com/2009/03/22/using-sqlite3-c-api-in-cocoa-with-xcode/

 

is one of that example.

 

Bye.

 

Luca.
 
 From: edole...@gmail.com
 Date: Tue, 21 Sep 2010 08:20:38 -0400
 To: cocoa-dev@lists.apple.com
 Subject: Lyrics in an application
 
 I'm new to trying this, but I am working on an app specific to a band and
 one of the features is the ability to browse albums, click on a song for
 that album and ultimately get the lyrics for that track. However I see that
 LyricWiki only allows a small portion of the lyrics to be returned via their
 APIs now. Should I make an XML file someplace on a server, include an XML
 file to the application (for offline), use a database local to the app, or
 just make a dictionary that contains the information?
 
 
 Google Voice: (508) 656-0622
 Twitter: eric_dolecki XBoxLive: edolecki PSN: eric_dolecki
 http://blog.ericd.net
 ___
 
 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/luca_ciciriello%40hotmail.com
 
 This email sent to luca_cicirie...@hotmail.com
  
___

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: Reboot? Slow First Run

2009-12-03 Thread Luca Ciciriello

Hi Leonardo.

Which version of OS are you using? Which architecture (32/64 bit), Which 
version of compiler? I don't know if this matter, but is useful for me in order 
to try to reproduce your behaviour.

 

Luca.  
 
 Date: Thu, 3 Dec 2009 12:47:27 +0100
 From: mac.iphone@gmail.com
 To: cocoa-dev@lists.apple.com
 Subject: Reboot? Slow First Run
 
 Hi,
 my app executes a given task in 1.2 seconds, all the time. I can quit the
 application, relaunch it, run the same task several times and it always
 takes 1.2 seconds.
 But if I reboot the machine, I launch the application and run the same task
 for the first time, it takes 13 seconds! This problem occurs at any reboot.
 Then if I run the task again it always takes 1.2 seconds.
 
 What do I miss?
 The task simply calls contentsOfDirectoryAtPath then reads all the 10,000
 files (=2 kb each) and put the contents into an array.
 I can show my code, if necessary.
 
 Regards
 --
 Leonardo
 
 
 
 
 ___
 
 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/luca_ciciriello%40hotmail.com
 
 This email sent to luca_cicirie...@hotmail.com
  
_
Have more than one Hotmail account? Link them together to easily access both
 
http://clk.atdmt.com/UKM/go/186394591/direct/01/___

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


real beginner question

2009-11-16 Thread Luca Ciciriello

Hi All.

I'm a real beginner in Objective-C/Cocoa developing and I have two questions.

First of all I want to ask to you if exists a list dedicated to beginners as I 
am. This in order to not bother the real programmers in this developer list 
with real beginner question.

The second question (the technical one) is: Exists a Functional Programming 
stile (property/functionality) I can use in Objective-C 2.0 (I am a Haskell 
programmer and a C++ programmer)?

 

Thanks in advance.

 

Luca.

 

 
  
_
Got more than one Hotmail account? Save time by linking them together
 
http://clk.atdmt.com/UKM/go/186394591/direct/01/___

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: real beginner question

2009-11-16 Thread Luca Ciciriello

Thanks Sebastian.

I'll read very carefully the paper you suggest.

 

Bye.

 

Luca.
 
 From: sebastianmor...@mac.com
 To: luca_cicirie...@hotmail.com
 Subject: Re: real beginner question
 Date: Mon, 16 Nov 2009 10:39:26 +0100
 CC: Cocoa-dev@lists.apple.com
 
 Dear Luca,
 
 1. IMHO, providing help for beginners is one aspect of this list. 
 There are some people with extraordinary teaching skills registered 
 here! As long as you do some initial research (Apple Docs, Google, 
 etc) before posting and respect common mailing list etiquette, I'd say 
 it's fine to ask beginner questions. However, you should also take a 
 look at stackoverflow, which is not a mailing list, so the email 
 noise issue is not as relevant there as it is here.
 
 2. You might want to read 
 http://developer.apple.com/mac/library/documentation/cocoa/Conceptual/ObjectiveC/Introduction/introObjectiveC.html
  
 , this will answer all basic questions about ObjC.
 
 Have fun!
 Sebastian
 
 
 
 Am 16.11.2009 um 09:18 schrieb Luca Ciciriello luca_cicirie...@hotmail.com 
 :
 
 
  Hi All.
 
  I'm a real beginner in Objective-C/Cocoa developing and I have two 
  questions.
 
  First of all I want to ask to you if exists a list dedicated to 
  beginners as I am. This in order to not bother the real programmers 
  in this developer list with real beginner question.
 
  The second question (the technical one) is: Exists a Functional 
  Programming stile (property/functionality) I can use in Objective-C 
  2.0 (I am a Haskell programmer and a C++ programmer)?
 
 
 
  Thanks in advance.
 
 
 
  Luca.
 
 
 
 
 
  _
  Got more than one Hotmail account? Save time by linking them together
  http://clk.atdmt.com/UKM/go/186394591/direct/01/___
 
  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/sebastianmorsch%40mac.com
 
  This email sent to sebastianmor...@mac.com
 
  
_
Got more than one Hotmail account? Save time by linking them together
 
http://clk.atdmt.com/UKM/go/186394591/direct/01/___

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


template metaprogramming optimization in COCOA app

2009-08-20 Thread Luca Ciciriello

Hi list.
I've included in an Objective-C++ project some part of a my old  
application written in pure ANSI ISO/IEC 14882:2006 C++. For the  
portability sake was very important to me the compliance with this  
standard. In this ANSI C++ application I've used the template  
metaprogramming methodology in order to achieve some level of compile- 
time optimizations. My question is: These optimizations are still  
there when  this C++ code is insert in a Objective-C++ COCOA app?


Thanks in advance.

Luca.
___

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


Exit an Application

2009-04-13 Thread Luca Ciciriello

Hi All.
I Know this, may be, is the most stupid question on this list by I'm  
pretty new using cocoa (I'm a C++ developer).
I've created an application with a button Exit and I've connected it  
with the method:


- (IBAction)exitApp:(id)sender
{
// TODO
}

Now my question is: Which call I have to do to quit my application  
instead of // TODO?

Is there a NSsomething to call?

Thanks in advance for any help.

Luca.

P.S.
I know you can answer me to read some manual before post these  
questions, but I've to release this app to my boss in less than an  
hour. Sorry.


___

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: Exit an Application

2009-04-13 Thread Luca Ciciriello
Thanks to everybody. You saved my life I'v released the application to  
my Boss just in time.


Bye.

Luca.

___

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: Merry Christmas

2008-12-25 Thread Luca Ciciriello

Thank you very much.A Merry Christmas to all the list members. May the 
knowledge, the meaning and the light be with you.Luca. From: 
jote...@charter.net To: cocoa-dev@lists.apple.com; 
xcode-us...@lists.apple.com Date: Thu, 25 Dec 2008 07:24:54 -0500 CC:  
Subject: Merry Christmas   A very Merry and Blessed! Christmas to all of you 
and your families   and friends  John Love Touch the Future! Teach!
___  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/luca_ciciriello%40hotmail.com 
 This email sent to luca_cicirie...@hotmail.com
_
 Live Search presents Big Snap II - win John Lewis vouchers 
http://clk.atdmt.com/UKM/go/117442309/direct/01/___

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: Any reason to avoid GCC-4.2 for Leopard and later targeted code?

2008-12-03 Thread Luca Ciciriello

Probably not. 
But we are speaking about linking against 10.5 SDK and in this framework I 
don't see any restriction to use GCC-4.2.
 
Luca.



From: [EMAIL PROTECTED]: [EMAIL PROTECTED]; [EMAIL PROTECTED]: Re: Any reason 
to avoid GCC-4.2 for Leopard and later targeted code?Date: Wed, 3 Dec 2008 
07:00:00 -0800
How about with Tiger users? Do the applications work there, too?

BobSent from my iPhone
On Dec 3, 2008, at 6:47 AM, Luca Ciciriello [EMAIL PROTECTED] wrote:


No Idea, but I use currently GCC-4.2 for my Apps. I've to say that my 
applications are C++ and Objective-C++ apps.I haven't found any problem using 
GCC-4.2 on Leopard. Luca.www.mitosrl.com From: [EMAIL PROTECTED] To: [EMAIL 
PROTECTED] Date: Wed, 3 Dec 2008 09:31:35 -0500 Subject: Any reason to avoid 
GCC-4.2 for Leopard and later targeted code?  I've run into an apparent 
codegen bug (related to Obj-C properties)  that appears to be fixed in 
GCC-4.2.  GCC-4 is still the system compiler on Leopard. For code 
targetting  Leopard and later (linked against the 10.5 SDK) are there any 
gotchas  or other issues I should be aware of before I switch over to using 
4.2  to build?  Jim ___ Do not 
post admin requests to the list. They will be ignored. Xcode-users mailing 
list ([EMAIL PROTECTED]) Help/Unsubscribe/Update your Subscription: 
http://lists.apple.com/mailman/options/xcode-users/luca_ciciriello%40hotmail.com
  This email sent to [EMAIL PROTECTED]

Take your friends with you with Mobile Messenger. Click Here! 

___Do not post admin requests to 
the list. They will be ignored.Xcode-users mailing list  ([EMAIL 
PROTECTED])Help/Unsubscribe/Update your 
Subscription:http://lists.apple.com/mailman/options/xcode-users/bob%40gluetools.comThis
 email sent to [EMAIL PROTECTED]
_
Get a bird’s eye view of the world with Multimap
http://clk.atdmt.com/GBL/go/115454059/direct/01/___

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 [EMAIL PROTECTED]


cString

2008-11-27 Thread Luca Ciciriello

Hi All.Recently I've installed the new Xcode 3.1.2 and I've removed my old 
Xcode 2.5.I've compiled with Xcode 3.1.2 (using the optional compiler GCC 4.2) 
one of the my Objective-C++ project. No problem, but I've got a warning about 
the code line: string elem = [[[gridArrayObjc objectAtIndex:i] stringValue] 
cString];The warning is: Warning: 'cString' is deprecated [...]. Well, in 
which way can I modify my code line in order to eliminate the deprecated 
cString?Thanks in advance for any answer.Luca.www.mitosrl.com
_
Win £1000 John Lewis shopping sprees with BigSnapSearch.com
http://clk.atdmt.com/UKM/go/117442309/direct/01/___

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 [EMAIL PROTECTED]


RE: cString

2008-11-27 Thread Luca Ciciriello

Thanks Mattias, UTF8String has solved my problem.Bye.Luca Date: Thu, 27 Nov 
2008 20:54:11 +0100 From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: 
Re: cString CC: cocoa-dev@lists.apple.com  On Thu, Nov 27, 2008 at 20:48, 
Luca Ciciriello [EMAIL PROTECTED] wrote: Hi All.Recently I've installed 
the new Xcode 3.1.2 and I've removed my old Xcode 2.5.I've compiled with Xcode 
3.1.2 (using the optional compiler GCC 4.2) one of the my Objective-C++ 
project. No problem, but I've got a warning about the code line: string elem = 
[[[gridArrayObjc objectAtIndex:i] stringValue] cString];The warning is: 
Warning: 'cString' is deprecated [...]. Well, in which way can I modify my 
code line in order to eliminate the deprecated cString?  Hi Luca,  Have you 
noticed that you can hold down the ALT modifier key and double click on a 
method name to bring up the relevant documentation for that method? If you do 
that on cString, you'll see something like this:  Returns a 
representation of the receiver as a C string in the default C-string encoding. 
(Deprecated in Mac OS X v10.4. Use cStringUsingEncoding: or UTF8String 
instead.)  Regards Mattias
_
See the most popular videos on the web 
http://clk.atdmt.com/GBL/go/115454061/direct/01/___

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 [EMAIL PROTECTED]


RE: using C++ STL in Empty Project

2008-11-24 Thread Luca Ciciriello

Could you please give to me more info? Which compiler are you using? What kind 
of project are you attempting to build (Obj-C,/Obj-C++/C/C++)? 
 
Luca. From: [EMAIL PROTECTED] To: cocoa-dev@lists.apple.com Date: Mon, 24 
Nov 2008 12:27:22 + Subject: using C++ STL in Empty Project   Hi all,I 
want to use c++ STL in a empty project, but there are some linking errors... 
Does anyone know how to fix it?Are there any pre-steps to setup the environment 
(such as set include path, or include some framework, etc).Thanks in 
advance.Best Wishes! Shuo SongSchool of Software Engineering,Tongji 
UniversityMP:+86 136-4161-7161  
_ 
超炫人气榜给您所有偶像的最新资讯和排名,快来支持自己的偶像! 
http://cnweb.search.live.com/xrank/results.aspx?q=%e5%91%a8%e6%9d%b0%e4%bc%a6FORM=MSNH
 ___  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/luca_ciciriello%40hotmail.com 
 This email sent to [EMAIL PROTECTED]
_
Win £1000 John Lewis shopping sprees with BigSnapSearch.com
http://clk.atdmt.com/UKM/go/117442309/direct/01/___

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 [EMAIL PROTECTED]

RE: Problem using GCC 4.2

2008-11-21 Thread Luca Ciciriello

I'd a similar problem. I've solved it removing all the pre-define preprocessor 
macro expecially __gnu_debug_def. Try this way.
 
Luca.
www.mitosrl.com Date: Fri, 21 Nov 2008 10:23:56 +0100 From: [EMAIL 
PROTECTED] To: cocoa-dev@lists.apple.com Subject: Problem using GCC 4.2  I 
tried to upgrade a small test project from gcc 4.0 to gcc 4.2 by changin the 
compiler version in the Project Info window but I get a strange compiler 
error:  error: current namespace 'std' does not enclose strongly used 
namespace '__gnu_debug_def'  ... in the file c++config.h which is included 
from string. If I change back to gcc 4.0 the build succeeds and if I try to 
get the error in a new project it works as well.  Any ideas?  / Påhl 
___  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/luca_ciciriello%40hotmail.com 
 This email sent to [EMAIL PROTECTED]
_
See the most popular videos on the web 
http://clk.atdmt.com/GBL/go/115454061/direct/01/___

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 [EMAIL PROTECTED]


FW: failing opening socket

2008-08-25 Thread Luca Ciciriello

Thanks for the answer.
Yes, I'm working as root but I'm still unable to find a solution to my problem. 
Unfortunately I've to implement this blessed ping function in C++ inside my 
cocoa app. I've used the following code without any results: 
 
 struct hostent *hp  = 0;
 struct sockaddr_in dest;
 
 int sockIcmp = socket(AF_INET, SOCK_DGRAM, IPPROTO_ICMP);

 hp = gethostbyname(10.63.10.70);
 memcpy((dest.sin_addr),hp-h_addr,hp-h_length); 
 dest.sin_family = AF_INET; 
  
 int bwrote = sendto(sockIcmp,buf_out,buf_out_size, (sockaddr*)dest, 
sizeof(dest));
 
 
 To open the socket I'd to substitute the SOCK_RAW with SOCK_DGRAM. In this way 
the socket is succesfully open, but the function sendto returns always -1.
 
 Is there some other way to implement a ping function in C++ working on Mac OS 
X? (this code, in Linux works fine).
 
 Thanks in advance for any idea.
 
 Luca


 
 From: [EMAIL PROTECTED]
 To: cocoa-dev@lists.apple.com
 Date: Fri, 22 Aug 2008 18:12:41 +0100
 Subject: failing opening socket
 
 
 Hi all.
 
 I'm porting a Linux project (using sockets to implement a ping function) on 
 Mac OS X. My problem is that the function:
 
 int sock_icmp = socket(AF_INET, SOCK_RAW, IPPROTO_ICMP);
 
 returns always -1.
 
 Where is my mistake? For me is the very first time using socket on Mac.
 
 Thanks in advance for any idea.
 
 Luca.
 
 
 
 
 _
 Win New York holidays with Kellogg’s  Live Search
 http://clk.atdmt.com/UKM/go/107571440/direct/01/___
 
 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/luca_ciciriello%40hotmail.com
 
 This email sent to [EMAIL PROTECTED]
 _
 Win New York holidays with Kellogg’s  Live Search 
 http://clk.atdmt.com/UKM/go/107571440/direct/01/
_
Win a voice over part with Kung Fu Panda  Live Search   and   100’s of Kung Fu 
Panda prizes to win with Live Search
http://clk.atdmt.com/UKM/go/107571439/direct/01/___

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 [EMAIL PROTECTED]


failing opening socket

2008-08-22 Thread Luca Ciciriello

Hi all.

I'm porting a Linux project (using sockets to implement a ping function) on Mac 
OS X. My problem is that the function:

int sock_icmp = socket(AF_INET, SOCK_RAW, IPPROTO_ICMP);

returns always -1.

Where is my mistake? For me is the very first time using socket on Mac.

Thanks in advance for any idea.

Luca.




_
Win New York holidays with Kellogg’s  Live Search
http://clk.atdmt.com/UKM/go/107571440/direct/01/___

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 [EMAIL PROTECTED]


RE: Simple question

2008-03-17 Thread Luca Ciciriello

Yes, you got it. .h stands for header and is the place where you make your 
declarations, .m stands for module and is where the definitions take place. 
You can encounter also .mm exetension. In these file you can mix Objective-C an 
C++ language.

Luca.

 From: [EMAIL PROTECTED]
 To: Cocoa-dev@lists.apple.com
 Date: Tue, 18 Mar 2008 00:45:17 +1300
 CC: 
 Subject: Simple question
 
 I have studying Cocoa - objective-C by myself for a few days ( im  
 entirely new to programming). There's a question I wanna know about.
 
 When you create a project in XCode, and add a new class, does anyone  
 know what .h file and .m respectively for?
 
 I mean if they have their own jobs in the coding, I wanna know like .h  
 for declare the varibles and .m for implementing?
 
 
 
 ___
 
 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/luca_ciciriello%40hotmail.com
 
 This email sent to [EMAIL PROTECTED]

_
Free games, great prizes - get gaming at Gamesbox. 
http://www.searchgamesbox.com___

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 [EMAIL PROTECTED]