Le 2 août 2011 à 08:22, Karl Goiser a écrit :
> Yes they are.
>
>
> They are a kludge that came about because C++ doesn’t implement object
> behaviour properly.
>
> Try this: http://www.google.com/search?hl=en&q=Singleton%2Bevil
>
>
> You have not said what about NSFileManager is a great ex
Hi all,
I want to include this feature in my app and the way I want it to work is if a
user selects a file in my table view and clicks a button it will open that file
in a quick look panel just the way it works in Finder. Actually if there was
only a way to trigger that easily like NSWorkspace
On 2 Aug 2011, at 11:39, Rick C. wrote:
> Hi all,
>
> I want to include this feature in my app and the way I want it to work is if
> a user selects a file in my table view and clicks a button it will open that
> file in a quick look panel just the way it works in Finder. Actually if
> there
Hello list,
I am trying to do quite simple thing - add a popup with all fonts, available
on system. Each item of menu, should be displayed in corresponding font. As
an example could be all iWork apps. When you dealing with text, you have a
popup with fonts, and each font name is displayed with "pr
On Aug 2, 2011, at 6:42 AM, Rimas M. wrote:
> Hello list,
>
> I am trying to do quite simple thing - add a popup with all fonts, available
> on system. Each item of menu, should be displayed in corresponding font. As
> an example could be all iWork apps. When you dealing with text, you have a
> p
Hello,
What is the most reliable way to detect in code if a mounted volume is the Time
Machine disk?
Currently I'm using the following code (also to detect a Boot Camp volume):
- (Boolean)isNotSearchable:(NSString *)volumePath
{
NSFileManager *fm = [NSFileManager defaultManager];
I have always run AppleScripts with a single Cocoa call:
NSAppleEventDescriptor *result=[script executeAndReturnError:&errorInfo];
but things seemed to have change in Lion. The first symptom is that scripts
that used to run fine, now quit with an "AppleEvent timed out" error. The only
one
>> That'll need to be updated. If you look at the @autoreleasepool section of
>> the ARC documentation, it specifically states that crossing out of one via
>> an exception will not drain the pool. There doesn't appear to be any way,
>> even through compiler flags, to change this.
>
> If an au
This code would work in most cases but is actually unreliable.
Obvious cases: you have 2 text files with these names ar the root of a
partition.
Worse case: an old time machine partition has been replaced by a new
one. Since the old partition is some kind of a second backup, the user
has not remov
On Aug 2, 2011, at 12:40 PM, cocoa-dev-requ...@lists.apple.com wrote:
> Send Cocoa-dev mailing list submissions to
> cocoa-dev@lists.apple.com
>
> To subscribe or unsubscribe via the World Wide Web, visit
> http://lists.apple.com/mailman/listinfo/cocoa-dev
> or, via email, send a mes
mea culpa for the noise - that was a mis-click.
___
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/U
On Aug 2, 2011, at 12:37 PM, Stephane Sudre wrote:
> Worse case: an old time machine partition has been replaced by a new
> one. Since the old partition is some kind of a second backup, the user
> has not removed the Time Machine files.
Depending on what he wants to do, this may not be a relevant
Developing for OS 10.5 and 10.6 I have an application with a main window (no
documents window) and a (non-modal) accessory NSPanel I want to show only when
the main window is the key window. I want the NSPanel hidden, however, when the
preferences or about window comes up or when the app is in t
This has to be an incredibly simple question but no amount of googling has
rendered an answer. So, to ask the cocoa dev community :)
All I want to know is whether the 'Send' button found in the Messages and
Whatsapp apps is a built in button or whether Whatsapp cribbed the design
and applied a cus
On Tue, 19 Jul 2011 08:59:26 -0700, Satoshi Nakagawa said:
>Is there a way to read "Double-click a main window's title bar to
>minimize" setting in Appearance tab in the system preferences?
>
>I want to read the setting in my code to make a custom window work
>with the setting.
I doubt there's an
On Aug 1, 2011, at 9:02 PM, Kyle Sluder wrote:
> if we had class storage (which in practice would be no different from
> static global variables except for scope), class methods would still
> be appropriate for a different set of tasks.
Not necessarily. Class variables could be defined differently
>> When you unarchive one of those strings, code expecting an instance of
>> UnencodableFoo will instead have an NSString, the use of which will likely
>> throw exceptions, eg: when code calls -[UnencodableFoo fooThing]
>
> No, it's not likely if UnencodableFoo is *my* code, because I program
>
After setting a breakpoint at -[NSWindow orderOut:] (thanks for this and other
hints to Kyle Sluder! - in a post on this list about a year ago) it turns out
that it is exactly my
- (void)windowDidResignKey:(NSNotification *)notification
which takes the panel off the screen. (I wonder why I hadn
I forgot to add:
Using
- (void)windowDidBecomeMain:(NSNotification *)notification
- (void)windowDidResignMain:(NSNotification *)notification
make the panel stay on the screen after the first mouse click, but on the other
hand do not achieve the desired effect, i.e. remove the panel when other
After much exploration I found that the problem was resolved by setting the
autoresizing mask of the parent tableView to flexible height/width.
This did not occur to me earlier because, as I mentioned, visually everything
resized properly. I'm unclear whether this is a framework bug or confusio
Thank you,
But i have one more doubt:
How can i get the WindowID(window number) using AXUIElementRef? There is a way
to get this?
AXUIElementRef element = AXUIElementCreateApplication(pid);
Thanks!
On 27/07/2011, at 13:30, David Duncan wrote:
> On Jul 26, 2011, at 6:14 PM, Diego Alvarez No
Just noticed that using the CGDataProviderRef with callback for data release
yields a memory leak:
CGDataProviderRef provider = CGDataProviderCreateWithData(NULL, buffer,
len, imageDataRelease);
CGColorSpaceRef space = CGColorSpaceCreateDeviceRGB();
cgImageRef = CGImageCreate(width,
On Aug 2, 2011, at 2:52 PM, Izak van Langevelde wrote:
> However, Instruments shows a leaked Malloc of 236K with as responsible Caller
> CGDataProviderCopyData, which makes no sense to me.
Something else (possibly out side of your control) called
CGDataProviderCopyData and didn't release the d
On 2011-08-02, at 6:02 PM, David Duncan wrote:
> On Aug 2, 2011, at 2:52 PM, Izak van Langevelde wrote:
>
>> However, Instruments shows a leaked Malloc of 236K with as responsible
>> Caller CGDataProviderCopyData, which makes no sense to me.
>
>
> Something else (possibly out side of your con
On Aug 2, 2011, at 3:34 PM, Izak van Langevelde wrote:
>
> On 2011-08-02, at 6:02 PM, David Duncan wrote:
>
>> On Aug 2, 2011, at 2:52 PM, Izak van Langevelde wrote:
>>
>>> However, Instruments shows a leaked Malloc of 236K with as responsible
>>> Caller CGDataProviderCopyData, which makes no
On 2011-08-02, at 6:57 PM, David Duncan wrote:
> On Aug 2, 2011, at 3:34 PM, Izak van Langevelde wrote:
>
>>
>> On 2011-08-02, at 6:02 PM, David Duncan wrote:
>>
>>> On Aug 2, 2011, at 2:52 PM, Izak van Langevelde wrote:
>>>
However, Instruments shows a leaked Malloc of 236K with as resp
Hi Greg,
Is that wishful thinking or a hint about the future?
:-)
All I have to say is: yes please!!
Regards,
Karl
On 03/08/2011, at 5:43 AM, Greg Parker wrote:
> On Aug 1, 2011, at 9:02 PM, Kyle Sluder wrote:
>> if we had class storage (which in practice would be no different from
>> stat
Karl,
This is not on our todo list or any list that I know of. Please file a bug
report if this enhancement request is interesting to you.
Thanks! :-)
davez
On Aug 2, 2011, at 4:59 PM, Karl Goiser wrote:
> Hi Greg,
>
> Is that wishful thinking or a hint about the future?
> :-)
>
>
> All I
Hello, fellow cocoa devs.
I'm running down the most common crasher we're seeing in OmniPlan-2.0 under
Lion and running onto some grief with NSSpellChecker/NSTextView. We have a
fairly complex outline view that is backed by many text storages and the field
editor is asked to do a lot. When edit
Greg Parker wrote: "A warning on '==' inside of 'if' is ridiculous.
'==' is comparison for equality. "=' is assignment. Anyone who can't
at least keep these two straight shouldn't be doing programming."
I'm glad that my bosses failed to discover my incompetence in my
40+years of programming i
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On 8/2/11 5:57 PM, Dale Miller wrote:
> Greg Parker wrote: "A warning on '==' inside of 'if' is ridiculous.
> '==' is comparison for equality. "=' is assignment. Anyone who can't
> at least keep these two straight shouldn't be doing programming."
...
>
Hi Tom,
Definitely write a Radar.
One thing you could try is overriding both -checkTextInRange:types:options: &
-handleTextCheckingResults:forRange:types:options:orthography:wordCount: for
your field editor.
You can have some kind of the field editor session ID.
Every time a new field editor
On Tue, Aug 2, 2011 at 6:09 PM, Aki Inoue wrote:
> Hi Tom,
>
> Definitely write a Radar.
I just got this distilled down into an extremely simple demo project.
rdar://problem/9886471
The demo project is here for any interested third parties: http://db.tt/7hA7i8m
> One thing you could try is over
Conrad Shultz notified me that I had misinterpreted Greg Parker's
post. I will recant my accusation of hubris and apologize.
Dale Miller
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comme
When retrieving an image from the iPad's rear camera, I remember there being an
API that would allow you to select from a number of resolutions, ranging from
thumbnail up to native. Where would I find this information? I'm trying to find
out, among other things, if the iPad can return a 640x480
Awesome thank you! I had seen one for thumbnails but I didn't realize there
was one that called qlmanage. I'll check it out!
On Aug 2, 2011, at 7:00 PM, jonat...@mugginsoft.com wrote:
>
> On 2 Aug 2011, at 11:39, Rick C. wrote:
>
>> Hi all,
>>
>> I want to include this feature in my app an
On Aug 2, 2011, at 7:57 PM, Dale Miller wrote:
> It is disconcerting that if A = 0x'0110' and B = '1001' then A & B returns
> true but A && B returns 0, so "if (A && B)' is executed, the 'true' leg is
> not taken
Don’t you have that backwards? Assuming B was supposed to be hex, i.e. 0x1001,
th
37 matches
Mail list logo