POSIX thread in cocoa project

2008-02-23 Thread Luca Ciciriello
Hi All. I've added to a cocoa project a .cpp file. In this file I've implemented a multithreading system using POSIX. Now, from my cocoa app's window I can use the functionality of the new added cpp file (using a .mm file as interface). The problem is that I'm able to create a detached thread w

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. ---

RE: Learning How to Program in Objective-C

2008-07-11 Thread Luca Ciciriello
Hi. You are right. If you have no programming experienced at all, yours will be a very long journey. Anyway you can start with a good tutorial in OOP (object oriented programming) and then start to learn some basis of Objective-C and COCOA framework. Yes, Xcode 2.5 on 10.4.11 (2.5 is the last

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 upg

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 a

RE: using C++ STL in Empty Project

2008-11-24 Thread Luca Ciciriello
In this case make you sure to use .mm as extension for your module and, as Jean-Daniel Dupas has said, try to link against libstdc++ lib Luca. _ See the most popular videos on the web http://clk.atdmt.com/GBL/go/115454061/direct/01/

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]

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> <[EMAI

RE: Any reason to avoid GCC-4.2 for Leopard and later targeted code?

2008-12-03 Thread Luca Ciciriello
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 Obje

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 ver

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 (th

RE: real beginner question

2009-11-16 Thread Luca Ciciriello
er.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 >: > > > > > Hi

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

FW: failing opening socket

2008-08-24 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

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 ca

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 moderat

Re: C++ constructors.

2009-05-13 Thread Luca Ciciriello
in addition to this copy-constructor, had you provided a default constructor? in addition try to using the copy constructor with const parameter has show below. Cbyte1::Cbyte1 (const Cbyte1 &val) { // SOMETHING } Luca. ___

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 methodo

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: c