Le 18 juil. 2012 à 16:19, Lee Ann Rucker a écrit :
>
>>> fly2never wrote:
>>> name = [NSString string];
>>
>>> because sending a method to nil is perfectly safe, unlike C++.
>
>> Ah! No! That's not a blanket guarantee! It is only valid for methods that
>> return void, integer types or poin
Le 8 août 2012 à 22:15, Rick Mann a écrit :
> On Aug 8, 2012, at 12:58 , Leo wrote:
>
>> As I recently learned, plain strings are stored "as is" in the executable
>> and can be discovered - if opening it in a text editor, for example.
>>
>> That is, if I have a string @"myString" inside the
Le 9 août 2012 à 02:01, Greg Parker a écrit :
> On Aug 8, 2012, at 4:52 PM, Graham Cox wrote:
>> I see that NSCopyObject is deprecated as of 10.8 (but is still being used
>> internally).
>>
>> This is going to be fun moving forward :) I'm not sure how binary
>> compatibility is going to be m
Le 12 août 2012 à 03:16, Jayson Adams a écrit :
>
> On Aug 11, 2012, at 4:51 PM, Graham Cox wrote:
>
>> On 12/08/2012, at 4:18 AM, Jayson Adams wrote:
>>
>>> the porting guide currently states, which is that you may not want to move
>>> to 64-bit
>>
>>
>> What's so hard about moving to 64
For memory addressing, 64 bit should be enough for some times.
For computation, 128 bit is already something from the past as actual Mac
processors provide 256bits register (AVX) ;-)
Le 12 août 2012 à 04:09, koko a écrit :
>
> Is 64-bit the end or will there be 128-bit?
>
>
> -koko
>
>
>
Le 13 août 2012 à 17:56, Kyle Sluder a écrit :
> On Aug 13, 2012, at 8:42 AM, Ben wrote:
>
>> I see in the documentation - and from a compiler error - that some classes
>> are not compatible with weak references.
>>
>> What makes these classes incompatible?
>
> They have custom implementati
Le 13 août 2012 à 19:54, John McCall a écrit :
> On Aug 13, 2012, at 9:29 AM, Jean-Daniel Dupas wrote:
>> Le 13 août 2012 à 17:56, Kyle Sluder a écrit :
>>> On Aug 13, 2012, at 8:42 AM, Ben wrote:
>>>
>>>> I see in the documentation - and from a compi
Le 14 août 2012 à 09:09, Vincent Habchi a écrit :
> Le 13 août 2012, à 23:47, Mike Abdullah scripsit:
>
>> An idea I've vaguely wondered about would be turning the isa variable into a
>> tagged pointer. If you know nothing is accessing it directly (to do so was
>> deprecated with the modern
Le 20 août 2012 à 16:08, Andreas Mayer a écrit :
>
> Am 17.08.2012 um 18:59 schrieb Kelly Keenan :
>
>> You should add new localizations to your project the same way that you add a
>> new target by selecting the Project, going to the Info tab for the Project
>> (not the target), and adding a
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
Le 31 oct. 2012 à 16:31, Ken Thomases a écrit :
> On Oct 31, 2012, at 10:17 AM, lbland wrote:
>
>> On Oct 31, 2012, at 10:41 AM, "Gerriet M. Denkmann"
>> wrote:
>>
>>> NSString *s = @"ร่วมรส";
>>
>> Not supported. The compiler should be issuing a warning. You need to escape
>> the char
Le 5 nov. 2012 à 18:56, Jerry Krinock a écrit :
> Continuing. In here…
>
> http://opensource.apple.com/source/libdispatch/libdispatch-228.18/os/object.h
>
> I find a maze of #define compiler directives which affect
> OS_OBJECT_USE_OBJC_RETAIN_RELEASE, and also there is a comment which implie
Le 6 nov. 2012 à 12:13, Tom Davie a écrit :
>
> On 6 Nov 2012, at 11:01, Nick Rogers wrote:
>
>> Hi,
>>
>> Thanks for the replies.
>> I was trying to achieve what essentially "free memory" apps on the Mac
>> AppStore do.
>> The RAM usage can be divided into four parts as shown in Activity M
Le 8 nov. 2012 à 14:54, Jerry Krinock a écrit :
> Update on email delays: Greg, sorry it took so long to reply this; I was
> waiting to see if your email would arrive. Although I have definitely been
> foiled by delays of several hours on this list for many months, it appears
> that the eve
You can use the libdispatch to monitor file changes (using
DISPATCH_SOURCE_TYPE_VNODE).
You can also use a kqueue to look for change on a specific file. If you want a
Cocoa wrapper, there is the well known UKKQueue class available on the net.
Both solutions are far more efficient if you have t
Le 9 déc. 2012 à 02:27, Richard Heard a écrit :
> Greg,
>
> So, from what you are saying, either of these snippets should be valid, right?
>
>> +(id)sharedInstance{
>>static id _sharedInstance = nil;
>>
>> …
>>OSMemoryBarrier();
>>return _sharedInstance;
>> }
OSMemoryBarrier
Le 11 déc. 2012 à 18:12, Vojtěch Meluzín a écrit :
> Hi,
>
> one of the customers reported that on his 10.8.2 our installer failed to
> even run and in the terminal there was this message:
>
> LSOpenURLsWithRole() failed with error -10810 for the file
> /Users/visa/Downloads/mxxx_7_05_setupmac/
http://www.catb.org/esr/faqs/smart-questions.html
Le 18 févr. 2013 à 10:20, Christ Levesque a écrit :
>
> ___
>
> Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
>
> Please do not post admin requests or moderator comments to the list.
> Contact
Le 11 mars 2013 à 23:25, Jean Suisse a écrit :
> Dear All,
>
> There may be several approaches to solve the issue I am about to describe,
> either on the userland side or on the kernel side... or in-between, using a
> daemon.
>
> Current situation
> A bsd kernel extension communicates with a
Le 12 mars 2013 à 20:15, Dave a écrit :
>
> On 12 Mar 2013, at 18:50, Jens Alfke wrote:
>
>>
>> On Mar 12, 2013, at 9:44 AM, John McCall wrote:
>>
>>> However, that wouldn't be an idiomatic implementation. The usual
>>> expectation is that allocating methods, like +new methods, construct
Le 13 mars 2013 à 01:55, Wim Lewis a écrit :
>
> On 12 Mar 2013, at 2:08 AM, Graham Cox wrote:
>> in a + method, [self class] === self. Once you've got that, you've got it.
>>
>>
>>
>> You're overthinking this.
>>
>> A class method is just an instance method of the class object. No magic at
Le 13 mars 2013 à 18:13, John McCall a écrit :
> On Mar 13, 2013, at 2:13 AM, Jean-Daniel Dupas wrote:
>> Le 13 mars 2013 à 01:55, Wim Lewis a écrit :
>>> On 12 Mar 2013, at 2:08 AM, Graham Cox wrote:
>>>> in a + method, [self class] === self. Once
Le 14 mars 2013 à 11:12, Richard Heard a écrit :
> Your logic is clearly flawed. This only seems to replace occurrences of $
> with the word DOLLAR.
>
> Also, if you are dealing with large strings, you could always use one of the
> below idioms to reduce memory pressure.
>
>
> @autoreleasep
Le 21 mars 2013 à 09:27, Luca Ciciriello 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
Le 18 avr. 2013 à 18:31, Jens Alfke a écrit :
>
> On Apr 18, 2013, at 12:14 AM, Rick Mann wrote:
>
>> I had an NSAssert with varargs in a C routing in a .mm file. It compiled
>> fine in a Mac OS X app, but the same code in an iOS app bitches about too
>> many arguments. Is that right?
>
>
Le 28 mai 2013 à 08:25, Oleg Krupnov a écrit :
> Hi Jens,
>
> I guess you may be right. But… two questions in this regard:
>
> 1. I thought that "isEqual" method is alternative to "hash" method,
> because searching by key and searching by hash are two mutually
> exclusive methods of looking up
Le 29 mai 2013 à 00:46, Graham Cox a écrit :
>
> On 28/05/2013, at 3:46 PM, Oleg Krupnov wrote:
>
>> I'd like to have a dictionary using C strings as keys (because I
>> already have const char* strings and would like to spare on creating
>> NSString wrappers)
>
>
> For the sake of avoiding
Le 29 mai 2013 à 06:14, Oleg Krupnov a écrit :
>> Why not just create NSString wrappers? By using the
>> -initWithBytesNoCopy:length:encoding:freeWhenDone: method you can avoid it
>> copying the actual C string characters, it literally just becomes a thin
>> wrapper.
>
> In my case it's more
Le 30 mai 2013 à 08:35, Eric Wing a écrit :
> On 5/29/13, Jens Alfke wrote:
>>
>> On May 29, 2013, at 8:29 PM, Eric Wing wrote:
>>
>>> CFDictionary I did not formally do in the benchmark, but I did run on
>>> the side for curiosity. I found that the C-string to CFString
>>> conversion ended
Le 9 juin 2013 à 11:35, Gerriet M. Denkmann a écrit :
> This works fine, but blocks my for 1 sec on a good day - who know how long if
> the net is slow:
>
> url = something/which/might/exist/or/not.gif
> data = [ NSData dataWithContentsOfURL: url options: mask error: &outError ];
>
> So I am
Le 12 juin 2013 à 10:14, Oleg Krupnov a écrit :
>> there isn't enough address space to create a NSArray containing even
>> NSIntegerMax pointers.
>
> I knew someone will say this. Who needs more than 640 KB RAM after
> all? :) © Bill Gates
>
This has nothing to do with the amount of availabl
Le 12 juil. 2013 à 08:41, Vincent Habchi a écrit :
> Hi!
>
> Sorry for this late answer, I was a bit swamped lately.
>
>> NSData wouldn't let you, but NSMutableData would, with methods like
>> appendBytes:length:, appendData:, increaseLengthBy:, etc. The underlying
>> buffer might have to m
Le 30 juil. 2013 à 10:27, Vincent Habchi a écrit :
> Rick,
>
> thanks for answering, because what I found on the Internet seems
> contradictory. Some say that if the C function is placed inside the
> implementation block, then it can access attributes as if it were a true
> Obj-C method; som
Le 30 juil. 2013 à 17:25, Scott Ribe a écrit :
> On Jul 30, 2013, at 9:08 AM, Andy Lee wrote:
>
>> I think it's subject to the same criticisms as *any* direct access to ivars,
>> although I agree it feels sketchier when done in plain C for some reason.
>
> Yes. Because what is the point of p
Le 31 juil. 2013 à 18:52, Jerry Krinock a écrit :
>
> On 2013 Jul 31, at 08:45, dangerwillrobinsondan...@gmail.com wrote:
>
>> what are the recommended search facilities for searching for things not
>> indexed by Spotlight? Or am I limited to task wrappers or NSFileManager
>> directory enum
While all theses methods may look valid, what not simply use a static variable
declared in your file ?
Instead of trying to use complex approach to hide the fact you need a global,
just use one, and don't try to reuse the existing one for things there are not
designed to do.
static id myCallb
Le 7 août 2013 à 17:32, Andy Lee a écrit :
> On Aug 7, 2013, at 3:47 AM, Jean-Daniel Dupas wrote:
>> Instead of trying to use complex approach to hide the fact you need a
>> global, just use one, and don't try to reuse the existing one for things
>> th
Le 7 août 2013 à 18:34, Andy Lee a écrit :
> On Aug 7, 2013, at 12:04 PM, Jean-Daniel Dupas wrote:
>> If you intend to use it from multiple threads, so use a tls.
>>
>> __thread id myCallbackHandler;
>
> I did not know about __thread, thanks for this. By usin
Le 12 août 2013 à 22:22, Kyle Sluder a écrit :
> On Mon, Aug 12, 2013, at 01:11 PM, Jens Alfke wrote:
>>
>> On Aug 12, 2013, at 12:31 PM, Graham Cox wrote:
>>
>>> XCode then refuses to build because the header file mod date no longer
>>> matches what was used when the precompiled headers wer
Le 17 août 2013 à 17:55, Marcel Weiher a écrit :
>
> On Aug 16, 2013, at 19:04 , Kyle Sluder wrote:
>
>> On Aug 16, 2013, at 12:41 PM, "Gerriet M. Denkmann"
>> wrote:
>>> On 16 Aug 2013, at 22:59, Kyle Sluder wrote:
Xcode does know this. But if you're building for 32-bit OS X, it will
Le 22 août 2013 à 15:36, Torsten Curdt a écrit :
> I have some piece of code that I want to run every x seconds but I
> also want to be able to trigger a "run now" that will reset the
> upcoming cycle.
>
> I think I would know plenty of ways to implement this (ranging from
> simple NSTimer
Le 22 août 2013 à 16:08, Torsten Curdt a écrit :
>> Why not just keeping a reference on your scheduled block and simply call
>> dispatch_async when you want to execute it immediately ?
>
> It would not re-schedule the timer. So the block could potentially be
> run twice without much of the des
Le 24 août 2013 à 22:09, Andreas Grosam a écrit :
> What's the purpose of NSValue's class method
>
> + (NSValue *)valueWithBytes:(const void *)value objCType:(const char *)type; ?
>
> It seems, NSValue will simply memcpy the content of value, and "somehow"
> determine the size in bytes from
Le 9 sept. 2013 à 09:54, Tom Davie a écrit :
>
> On 9 Sep 2013, at 09:13, Damien Cooke wrote:
>
>> Hi all,
>> I am pulling my hair out here trying to replace the unicode (r) symbol with
>> \\00ea in a string. Is there a way of doing this as the NSString is a
>> unicode String so it is inte
Le 9 sept. 2013 à 09:58, Tom Davie a écrit :
>
> On 9 Sep 2013, at 09:44, Kyle Sluder wrote:
>
>> Thirded. I thought I wouldn't like it. As soon as I didn't have to manage
>> retains and releases of temporary objects, the discipline completely left my
>> mind. Now whenever I go back to non-
Le 9 sept. 2013 à 11:33, Tom Davie a écrit :
>
> On 9 Sep 2013, at 10:18, Jean-Daniel Dupas wrote:
>
>>
>> Le 9 sept. 2013 à 09:58, Tom Davie a écrit :
>>
>>>
>>> On 9 Sep 2013, at 09:44, Kyle Sluder wrote:
>>>
>>>>
Le 9 sept. 2013 à 11:54, Tom Davie a écrit :
>
> On 9 Sep 2013, at 11:49, Jean-Daniel Dupas wrote:
>
>>
>> Le 9 sept. 2013 à 11:33, Tom Davie a écrit :
>>
>>>
>>> On 9 Sep 2013, at 10:18, Jean-Daniel Dupas wrote:
>>>
Le 9 sept. 2013 à 18:11, Jens Alfke a écrit :
> Parsing dates from strings can be surprisingly expensive — more than once
> I’ve seen it show up as the primary hot-spot in code that reads files or
> parses network data. NSDateFormatter is very flexible, but you pay for that
> in speed. If you
For ARM, 64 bit matters because the instruction set has been updated to
provider better performances.
I just hope the performance boost provided by this architecture change will be
enough to balance the slow-down due to the increase of instruction and pointer
size.
Le 10 sept. 2013 à 22:01, A
;
> On Sep 10, 2013, at 5:47 PM, Tom Davie wrote:
>
>>
>> On 10 Sep 2013, at 23:30, Jean-Daniel Dupas wrote:
>>
>>>
>>> For ARM, 64 bit matters because the instruction set has been updated to
>>> provider better performances.
>>>
&
Le 11 sept. 2013 à 09:03, Marcel Weiher a écrit :
> Hi John!
>
> On Sep 10, 2013, at 19:26 , John McCall wrote:
>
>> On Sep 9, 2013, at 4:15 AM, Marcel Weiher wrote:
>>> [Optimizations in ARC are there to mitigate pessimizations]
>>
>> For what it’s worth, the autorelease optimization was p
Le 11 sept. 2013 à 11:31, Vincent Habchi a écrit :
> Mostly, this is not going to change anything. You will see your code size
> increase, because unless you use PIC, you’ll have to store 64-bit addresses
> instead of 32. There will be more cache misses as your memory space becomes
> sparse.
Le 14 mai 08 à 19:56, Stuart Malin a écrit :
On May 14, 2008, at 5:55 AM, [EMAIL PROTECTED] wrote:
The App runs fine in gdb and even writes the output file.
Still the same error (crash and no output written) when running it
with "open MyApp.app".
Yann
Have you built a deployment (Rel
Le 15 mai 08 à 10:11, Matt Gough a écrit :
On 15 May 2008, at 00:20, Jens Alfke wrote:
Because it would be orders of magnitude slower. Even the property
list parser can read the iTunes library in a few seconds.
Extracting all that information via AppleEvents would certainly
take minutes
"Icon\r" is an invisible file that contains a custom directory icon.
What make you think this file is handle in different way ?
The terminal displays '\r' as ^M but it's not a problem. Isn't it?
Le 15 mai 08 à 12:17, JanakiRam a écrit :
Hi All,
I'm facing an issue with NSFileManger directoryC
You cannot minimize an Application. You can hide it, or you can
minimize an application's window.
As it's said at least 4 times a week on this list, this is not
possible to interact directly with other applications windows.
The two most common way to interact with an other application is
All security related API are in the Security Framework(s).
You do not have control of what to user enter in this dialog, its main
purpose is to create some "rights" and return them to you if the user
is allow to use them.
Usually this dialog is automatically displayed when you query some
Le 15 mai 08 à 18:42, Yann Disser a écrit :
Thank you all for your help. I managed to fix the problem by going
over your suggestions.
The problem was that I access a file (without proper error-handling;
I will add that now :-)). The default working directory is the main-
bundle path when
Le 15 mai 08 à 23:17, Ron Aldrich a écrit :
On May 15, 2008, at 9:32 AM, Jean-Daniel Dupas wrote:
All security related API are in the Security Framework(s).
You do not have control of what to user enter in this dialog, its
main purpose is to create some "rights" and return them
ot;.
Why Terminal does show different names for the same file. When i
see it in Finder it does show as "Icon".
Please advise. Thanks in Advance.
JanakiRam
On Thu, May 15, 2008 at 4:34 PM, Jean-Daniel Dupas <[EMAIL PROTECTED]
> wrote:
"Icon\r" is an invisible file
It's an inline fonction, so code compiled using this function will
properly work on pre 10.5 versions of the OS.
Le 19 mai 08 à 08:34, Graham Cox a écrit :
Yes, it's not available pre 10.5
G.
On 19 May 2008, at 4:31 pm, Andrew Merenbach wrote:
Is there any reason to use the cast on cbbo
t an Obj-C method) does it get inlined?
Someone told me very authoritatively recently that it wouldn't be
compiled inline if it's within a .m file, so the inline keyword was
redundant. I couldn't find anything documenting that either way.
G.
On 19 May 2008, at 5:51 pm, Jean-Da
That'd be great for the Mac, but not so great for the Cocoa
evangelists. It's hard to understand the neglect Java has seen on
the Mac, except as a way to try to steer more people towards Cocoa.
Cocoa is a framework, Java a language. Apple provided a Cocoa/Java
bridge to let developper
Le 19 mai 08 à 22:36, Peter Duniho a écrit :
Date: Mon, 19 May 2008 20:31:02 +0200
From: Andreas Mayer <[EMAIL PROTECTED]>
This is (part of) a method that handles an AppleScript command send
to
the application.
One possible argument is the color to be used for display:
- (id)handleDisplayC
Le 19 mai 08 à 22:36, Peter Duniho a écrit :
Date: Mon, 19 May 2008 20:31:02 +0200
From: Andreas Mayer <[EMAIL PROTECTED]>
This is (part of) a method that handles an AppleScript command send
to
the application.
One possible argument is the color to be used for display:
- (id)handleDisplayC
I think face-to-face is an important part to overcome the
obstacles. And this will become easier the more popular it gets.
Amen. I can't tell you how much I sometimes hate having moved away
from the SF Bay Area where there are many Cocoa Programmers, and
there are NSCoder nights, and Co
Be patient, the official discutable iPhone SDK is annonced for the
next month (probably a couple of weeks now).
The time your letter reaches Apple, it will no longer be under NDA.
Le 21 mai 08 à 18:18, Ilan Volow a écrit :
I keep thinking that all the energy spent on the list discussing the
Le 22 mai 08 à 12:57, Keith Duncan a écrit :
is there a way to tell if my executable was launched by/attached to
some other process?
You can use ptrace(2) with the PT_DENY_ATTACH request to prevent
anyone from attaching and will kill the process if it is already
being traced.
See http:
You can pass this argument:
-AppleLanguages '(de)'
AppleLanguages is the UserDefauts key (from the NSGlobalDomain domain)
that control this behavior.
Le 24 mai 08 à 11:09, Gerriet M. Denkmann a écrit :
Somewhere I have read (if my memory is not faulty) that it is
possible to lauch an ap
Le 27 mai 08 à 20:17, Gorazd Krosl a écrit :
Greetings,
I am having trouble with something that should be pretty
basic..
What I would like to do is set the action for NSButton
programmatically where the selector is a variable.
I can't seem to find an example.
[aButton addTarget:self action:
Le 29 mai 08 à 06:58, Scott Anguish a écrit :
On May 28, 2008, at 11:31 PM, Kyle Sluder wrote:
Hi,
This is more a question for Tech Pubs or DTS than anyone, I guess,
but
are there/will there be developer release notes for 10.5.3? Can
anyone confirm any previous show-stoppers are fixed (
Le 29 mai 08 à 20:25, Paul Archibald a écrit :
Comrades,
-- Newbie Alert --
This is my first posting to this list, and has to do with my first
foray into Cocoa + ObjC + Interface Builder. I am trying to
understand the relationships between resource elements in the NIB
and the ObjC code t
Le 31 mai 08 à 19:14, Torsten Curdt a écrit :
On May 31, 2008, at 18:55, Jens Alfke wrote:
On 31 May '08, at 8:07 AM, Torsten Curdt wrote:
I think you want to schedule the connection for the
NSModalPanelRunLoopMode runloop mode. This is the mode that is
used for modal windows.
You mean
Le 1 juin 08 à 14:27, Torsten Curdt a écrit :
If you handle the modal session yourself, it's easy to let the
connection do some processing while the modal window is open:
Replace -[NSApp runModalForWindow:[self window]] by this and it
should do the trick.
/* Create a modal session, and
Why the replacement should be Cocoa ?
Actualy, the successor of "KL Services" are "Text Input Source
Services".
http://developer.apple.com/documentation/TextFonts/Reference/TextInputSourcesReference/Reference/reference.html
Le 3 juin 08 à 05:49, Charles Jenkins a écrit :
Hi! I'm looking to
Note that you should never run a GUI application with elevated
provilege, particulary an application that uses AppKit, this is EVIL.
See man authopen(1). This is built-in an helper tool design to read
and write file using auth services. It handle all the authorization
part for you.
And b
BezelServices is not used to control ALS but to display visual
notification like the one you see when you change the audio volume, or
when you press the eject key.
Le 3 juin 08 à 20:58, Gabriel ROUSSEAU a écrit :
Hi,
There is one thing that should be accessible from UserDefaults or by
A
Le 3 juin 08 à 21:24, David Hoerl a écrit :
I'm using [NSDictionary writeToFile:...] to save a fairly large
dictionary as a text plist file. I found a quick and dirty hack to
convert it into a binary formatted file:
strcpy(command, "/usr/bin/plutil -convert binary1 ");
strcat(command
Le 4 juin 08 à 01:00, Scott Anguish a écrit :
On Jun 3, 2008, at 5:02 AM, Hamish Allan wrote:
I don't even know what the Cocoa interface to the Apple Remote is,
let
alone having used it, let alone being able to troubleshoot it, and I
don't imagine everyone here is an expert either...
Le 4 juin 08 à 04:13, Ken Thomases a écrit :
On Jun 3, 2008, at 8:49 PM, David Hoerl wrote:
ret = [manager createFileAtPath:@"/tmp/binary.plist"
contents:plist attributes:nil];
You can also do [plist writeToFile:...] to write the data object
out. There's nothing wrong with what you w
Le 4 juin 08 à 16:10, colo a écrit :
Just curious if some frameworks have been thought of for Animation. In
the likes of Jquery or others. For example
window.show(fade_in, slow);
That way animations can be very clean and simple to write and test.
Isn't what CoreAnimation does ?
___
Le 6 juin 08 à 16:53, Tang Ke a écrit :
Hi,
I'm new to iphone os programming and my project involves to build c+
+ files
within the xcode cocoa touch environment.
So i tried to create a new cocoa touch project and use the interface
builder
to add a button and a label.
So that when i press
tried to rename my
viewcontroller to viewcontroller.mm, it didn't work. I searched
google, ADC, and cocoadev.com, and really couldn't find an answer.
Cheers,
Tang
2008/6/6 Jean-Daniel Dupas <[EMAIL PROTECTED]>:
Le 6 juin 08 à 16:53, Tang Ke a écrit :
Hi,
I'm new to
Le 7 juin 08 à 20:30, Michael Ash a écrit :
On Sat, Jun 7, 2008 at 9:59 AM, Ricky Sharp <[EMAIL PROTECTED]> wrote:
I will hope though that within the context of say memcpy, that the
GC thread
could not collect data. For example, the following should be safe:
memcpy(myLocalGCAwareBuffer, [d
Le 8 juin 08 à 12:43, Michael Ash a écrit :
On Sun, Jun 8, 2008 at 1:48 AM, Peter Duniho <[EMAIL PROTECTED]> wrote:
So, when you write "true proxying of method invocations", what does
that
mean, exactly?
Distributed Objects is probably the best example in terms of
real-world use of a techn
Le 8 juin 08 à 20:13, Brent Fulgham a écrit :
I've been enjoying the NSArray/NSMutableArray classes as I work with
various user interface features for a program I'm working on that
interacts with a legacy C++ library.
I've recently begun considering how to efficiently display the
content
Le 8 juin 08 à 20:51, Joan Lluch (casa) a écrit :
El 08/06/2008, a las 20:13, Brent Fulgham escribió:
I've been enjoying the NSArray/NSMutableArray classes as I work
with various user interface features for a program I'm working on
that interacts with a legacy C++ library.
I've recently
Le 9 juin 08 à 09:56, John Engelhart a écrit :
On Jun 8, 2008, at 11:48 PM, Chris Hanson wrote:
On Jun 8, 2008, at 5:39 PM, John Engelhart wrote:
On Jun 7, 2008, at 7:11 PM, Chris Hanson wrote:
This won't happen because each message expression -- just as with
function-call expressions -
Le 11 juin 08 à 09:01, John Engelhart a écrit :
On Jun 10, 2008, at 11:28 AM, Charles Srstka wrote:
I think the problem is that if NSArray has +[NSArray array]
returning an NSArray, then NSMutableArray has to return an NSArray
also, since it can't have a different method signature for th
I wasn't even aware of this XML parser.
As we are on a Cocoa list I suggest you to have a look at
NSXMLParser. Else this question is completly off topic.
Le 11 juin 08 à 11:07, Pontus Hulin a écrit :
Im using
XMLParseDataRef
to parse xml, but the parse does not accept empty attributes:
Le 12 juin 08 à 19:21, Jeff LaMarche a écrit :
Lately, I've started to see accessors of the following sort:
- (NSString *)foo
{
return [[foo retain] autorelease];
}
rather than just
- (NSString *)foo
{
return foo;
}
What is the purpose or benefit of doing this? It seems to m
Le 13 juin 08 à 20:47, Philip Lee Bridson a écrit :
Hi Guys,
I have a window that displays an image, I want the window to be
transparent so that only the image is displayed and not have the
white background that is present due to the window. I have tried sub-
classing NSWindow and making
Le 14 juin 08 à 16:43, Dex Morgan a écrit :
Hello,
I need to encode a quoted-printable text and convert it to given
encoding according to the headers of a message.
I've used some code but the result is wrong.
For example =C3=A8 should be 'è' but the result is two symbols (the
sqrt symbol a
Le 14 juin 08 à 18:40, Loren Ryter a écrit :
On 06/14/08 12:17 PM, "Graham Cox" <[EMAIL PROTECTED]> wrote:
BOOL* means "pointer to BOOL" not BOOL itself. So you need to remove
the *.
This worked brilliantly thanks a lot! I literally spent 3 hours on
that ;-)
iconData:[NSImage i
Le 15 juin 08 à 13:25, Mohsan Khan a écrit :
Hi
I'm trying to to install kEventAppSystemUIModeChanged using
NSAppleEventManager, so that my app will know when the menubar &
dock is hidden i.e. some other app enters fullscreen mode.
I've tried entering fullscreen mode using VLC and Photos
Le 15 juin 08 à 17:38, Jason Stephenson a écrit :
Whoops! Had a brain fart.
In my previous message where I say @interface, I meant to say
@implemenation. Sorry for any confusion.
Got too much going on today. I should have just stayed away from
email.
--Jason
In Obj-C, the concept of
Le 15 juin 08 à 18:15, Mohsan Khan a écrit :
Hi
I'm trying to handle when some other app changes to fullscreen by
handling the kEventAppSystemUIModeChanged event.
The event handler is called but then when I check if the menu bar is
visibe I get TRUE!
So I figured, either the apps I'm t
Le 18 juin 08 à 03:40, Bill Bumgarner a écrit :
On Jun 17, 2008, at 6:02 PM, Michael Gardner wrote:
Too bad you can't avoid blocking at least occasionally with the
event-driven APIs, meaning you still have to use threads to avoid
it completely.
I don't really see in what situation you ha
Le 18 juin 08 à 04:04, Omar Qazi a écrit :
I'm a little confused about file system notifications in Cocoa. In
NSWorkspace, it says that the method for subscribing to file system
notifications will always return NO, which seems useless to me. I
know Carbon has the FNSubscribe() and FNUnsubs
Le 18 juin 08 à 15:15, Angelo Chen a écrit :
Hi,
Is there a way to do following:
In a NSWindow, I'd like to disable manual resizing(don't allow user
to drag the lower right corner to resize the window), only by
clicking 'max' and 'restore' icons, possible? the reason is, I put a
QuickTI
401 - 500 of 1150 matches
Mail list logo