u
still need to target Leopard. If you do, then just ignore the warning,
or create the thread with NSThread if that would be possible.
Nick Zitzmann
<http://www.chronosnet.com/>
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
On Sep 7, 2009, at 7:54 PM, H David Goering wrote:
XCode automatically adds the "Special Characters..." menu item to
applications, but mine doesn't need it, so I'd like to leave it off.
That menu item cannot be turned off.
Nick Zitzmann
<ht
there.
Nick Zitzmann
<http://www.chronosnet.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
; loading times. Or
can you move them and then set their frames in code?
Nick Zitzmann
<http://www.chronosnet.com/>
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the list.
Contact
w that you can use a UTI here to
set the category, but what's the UTI for the "general" category? I
tried searching for NSServiceCategory and found nothing, and searching
for UTIs gives me results for a different meaning of UTI...
Nick Zitzmann
&
On Sep 10, 2009, at 11:30 AM, Nick Zitzmann wrote:
I'm aware of an apparently undocumented NSRequiredContext key called
NSServiceCategory that manually sets the service category in the
Keyboard preference pane, which is useful when the pane does not
correctly categorize the service,
re's nothing
with "search" in its name.
I'd also better file a bug report about the lack of documentation for
NSServiceCategory...
Nick Zitzmann
<http://www.chronosnet.com/>
___
Cocoa-dev mailing list (Cocoa-dev@lis
this, the radar # is 7213062.
Nick Zitzmann
<http://www.chronosnet.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)list
n't mention that the
privileged process is actually a child of the process which executed
this ?
AEWP() actually does do a fork()/exec() internally; see <http://www.opensource.apple.com/source/libsecurity_authorization/libsecurity_authorization-36329/lib/trampolineClient.cpp
> for
vents to the "System Events"
application. You can do this easily using NSAppleScript, by running a
script like "tell application \"System Events\" to restart". If you
know what you're doing, you could probably make that even faster by
using AE
need to do to reproduce the problem.
When it triggers, you'll get a backtrace of both the offending access
and everything that retained or released the object. If that takes too
long, then have the instrument only record NSUndoManager objects
instead of everything.
Nick Zitz
turned on? If you
launched Instruments from within Xcode, you don't, since it's not
turned on by default since it generates a tremendous amount of data.
Nick Zitzmann
<http://www.chronosnet.com/>
___
Cocoa-dev mailing
aned up at some point.
In any case, if you want them to stick around, then you need to memcpy
() them into a data buffer that is controlled by your application.
Nick Zitzmann
<http://www.chronosnet.com/>
___
Cocoa-dev mailing list (Cocoa-dev
some sample code on
ADC that will show you how to use the scripting bridge to send a
message.
Nick Zitzmann
<http://www.chronosnet.com/>
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comm
sible; you'd have to discriminate based on the bundle
identifier returned by the main NSBundle. BTW, what exactly are you
trying to accomplish? Quitting the screen saver engine
programmatically can open a security hole, since it's quite possible
that the computer was locked for a
r security (unless ScreenSaverEngine catches this and
cancels the terminate message, I'm not sure).
Nick Zitzmann
<http://www.chronosnet.com/>
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator
SE_TOUCH should be defined in the IOLLEvent.h header in
the IOKit framework in the Snow Leopard SDK. You might want to make
sure that the correct header is being imported by using the preprocess
feature. You are using the 10.6 SDK as the base SDK for that
architecture, right?
Nick Zitzma
Use Instruments, use the object alloc instrument with retain/release
counting and NSZombie detection turned on, and run your app. When it
crashes, you should be told what caused the crash, and you should get
a complete log of the retains/releases on the object.
Nick Zitzmann
<http://www.chrono
recommended so you can see what is being
included in the build. Did you check that to make sure the correct
header was being loaded?
Nick Zitzmann
<http://www.chronosnet.com/>
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post
ould get a window/view showing you
the preprocessed but not compiled output of the file. In there, it'll
show you exactly what went into the compiling of the file, including
full paths to imported headers. You can use this to figure out what
headers are really being imported.
Nick
e are flagged as leaked memory...
When running the leaks instrument with NSZombieEnabled, _everything_
is flagged as leaked memory, because technically zombies count as
leaks. To do proper leak checking, you need to turn off zombies.
Nick Zitzmann
<http://www.chrono
,
etc.), objects in Foundation are not made to be subclassed, unless you
really know what you're doing. What exactly are you trying to
accomplish? If you're just trying to add methods to the class, then
make a category instead.
Nick Zitzmann
<http://www.c
use it, but
others generally don't.
Nick Zitzmann
<http://www.chronosnet.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 coco
ocumentation/Cocoa/Conceptual/MemoryMgmt/Articles/mmRules.html
>
Nick Zitzmann
<http://www.chronosnet.com/>
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the list.
Contact
"not recommended" natural language formatting?
Use a 10.0-style date formatter. They're much better at parsing user-
generated date strings than the newer 10.4-style formatters in my
experience.
Nick Zitzmann
<http://www.chronosnet.com/>
_
it before the object goes away. Check the documentation for
more information.
Nick Zitzmann
<http://www.chronosnet.com/>
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to th
thread safety at all?
Yes. It pays to plan ahead for what could happen, because the
alternative is to be stuck with a dumb design decision that can't be
easily taken back later.
Nick Zitzmann
<http://www.chronosnet.com/>
___
Cocoa-dev
lator, but not the device. Since the device
doesn't have any swap space, and only so much memory, and since
zombies make it so that memory will not be deallocated, your app would
have a super short lifespan if you could run it with zombies turned on
in the device.
Nick Zitz
won't let me select Zombies as an instrument, even when the
target is set to Simulator.
Don't use Xcode to launch Instruments. Launch Instruments and set
things up manually; you'll find there's a zombie instrument there you
can choose when you look at simulator instrumen
at you can write ObjC methods that way...
Nick Zitzmann
<http://www.chronosnet.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 coc
an NSInvocationOperation run in the same
thread in which it was added to a queue; in fact, this should not be
possible in Snow Leopard and later.
Nick Zitzmann
<http://www.chronosnet.com/>
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple
ses/NSAttributedString_Class/Reference/Reference.html#//apple_ref/doc/uid/2166-string
>
Nick Zitzmann
<http://www.chronosnet.com/>
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments
ow do I get it to stop this? I don't want this to happen, and I
suppose I can resort to hackery to stop this, but I'm hoping there's a
better way. And making this LSUIElement app into an LSBackgroundOnly
app is not an option here.
Nick Zitzmann
<ht
need to implement -dealloc if you create instances of a
class that retain certain objects or register as observers of
something. If you create a class method-only class, then there will be
no instances of that class, so there's nothing to deallocate.
Nick Zitzmann
<http://www.chrono
ver call in the code and
sure enough it goes a lot faster. Trouble is, I do need that
notification. Any ideas?
Don't add thousands of observers. Re-do your design so that one
observer can process the thousands of objects that need processing
instead.
Nick Zitzmann
<ht
#define that's in math.h... isinf() is
in the same header.
Nick Zitzmann
<http://www.chronosnet.com/>
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the list.
Contact t
th the key "hw.cpu64bit_capable". If the key
value is set to 1, then it's able; if it's undefined or set to 0, then
it isn't.
Nick Zitzmann
<http://www.chronosnet.com/>
___
Cocoa-dev mailing list (Cocoa-dev@lists.appl
chitecture. And it's unlikely GC support will ever be taken out.
Nick Zitzmann
<http://www.chronosnet.com/>
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the list.
Cont
On Oct 31, 2009, at 10:37 AM, Gabriel Zachmann wrote:
Is there anything wrong?
Why do you have two different Deployment configurations with vastly
different settings?
Nick Zitzmann
<http://www.chronosnet.com/>
___
Cocoa-dev mailin
NSCalendar with the desired NSTimeZone.
Nick Zitzmann
<http://www.chronosnet.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 coc
date & time as if they were in your time zone.
If you need to encapsulate a time zone in a date, then use
NSCalendarDate instead. NSCalendarDate is deprecated, but as of now,
it's the only built-in date class that uses time zones.
Nick Zitzmann
<http://w
o do that for some reason on the iPhone OS, then you
might have to subclass NSDate, override its primitives, and add a
timeZone property. I wouldn't recommend this unless you really know
what you're doing, though, since NSDate is a class cluster.
Nick Zitzmann
<http://www.chron
s the part that needs to be redrawn using the -
setNeedsDisplayInRect: method.
Nick Zitzmann
<http://www.chronosnet.com/>
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the l
stainable in the long run on Leopard,
because that option takes huge amounts of memory, and Instruments will crash
once it's hit the 4 GB VM limit, but it still might be useful to you if the
problem is not very deep.
Nick Zitzmann
<http://www.chronosnet.com/>
___
since I
have run into one with them that does not happen when using colloquial names
(#7163744), and I wouldn't be too surprised if there are others.
In any case, it won't help the GP if the bundle is localized but the app isn't.
t's a missing feature. File a feature request at
<http://bugreport.apple.com/> and if you're lucky, your language might be
supported by System Preferences in a future cat.
Nick Zitzmann
<http://www.chronosnet.com/>
___
Cocoa-dev
to keep it in the Dock when it is not running. Please do not
programmatically add inactive applications to the Dock. Even if there was an
official way of doing this, Mac OS X has a long tradition of making this choice
opt-in instead of opt-out like on Windows.
Ni
e an external
> command like "cp"?
> I think it should be possible to copy files with proper privilege with Cocoa
> calls.
Yes. Apple actually wants you to use AEWP() to run your own helper tool for
security reasons, though it's highly unlikely you'll run into pro
hat, then you need to invoke AEWP() with a wrapper that sets the
uid. Search the archives for details.
Nick Zitzmann
<http://www.chronosnet.com/>
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or mode
t if there is a chance that you need to call
AEWP() more than once.
Nick Zitzmann
<http://www.chronosnet.com/>
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the list.
Contact
Then you use AEWP() with the
AuthorizationRef obtained from the SFAuthorization to do whatever it is you
need to do.
Nick Zitzmann
<http://www.chronosnet.com/>
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post ad
Reference/Reference.html#//apple_ref/doc/uid/TP40008592-CH1-SW37>
Nick Zitzmann
<http://www.chronosnet.com/>
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the list.
Contact the moder
his method in Snow
Leopard! Not only does it not work, but it ends up crashing at some point if
you don't have GC turned on. Yes, I filed a bug.
Nick Zitzmann
<http://www.chronosnet.com/>
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
.
> I have look in libpcap that pretty much gives the packets but i dont know
> how much it helps in notification kind of things.
It doesn't. You'll have to parse the packets manually. Good luck.
Nick Zitzmann
<http://www.chronosnet.com/>
__
this is OT for the list, so I
suggest you ask further questions elsewhere...
Nick Zitzmann
<http://www.chronosnet.com/>
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the list.
C
t a whole lot of love from
developers or users, because it was never turned on by default, the PPC64
frameworks had a lot of problems early on that were later fixed, and it was
discontinued in Snow Leopard...
Nick Zitzmann
<http://www.chronosnet.com/>
bsolete
paths for bundle resources, which may or may not be significant depending on
what your app has to do just before it quits. At least this was as of Leopard.
I haven't checked this under Snow Leopard.
Nick Zitzmann
<http://www.chronosnet.com/>
___
oad in MainMenu.nib.
Nick Zitzmann
<http://www.chronosnet.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.ap
egate_Protocol/IKImageBrowserDelegate_Reference.html#//apple_ref/doc/uid/TP40004710-CH3-DontLinkElementID_5>
Nick Zitzmann
<http://www.chronosnet.com/>
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderat
the 64-bit version to Snow Leopard unless you know what
you're doing...
Nick Zitzmann
<http://www.chronosnet.com/>
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the list.
Conta
for 64-bit, so I just keep them as double
constants and use that flag to make them into float constants on 32-bit builds.
Of course, I don't think there is any one true way of tackling this problem...
Nick Zitzmann
<http://www.chronosnet.com/>
atching the double-free.
Nick Zitzmann
<http://www.chronosnet.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
one and volume of a sound?
Use OpenAL. It's available for both Mac OS X and iPhone OS.
Nick Zitzmann
<http://www.chronosnet.com/>
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to
e file into an ObjC++ source file, change its extension
from .m to .mm.
> Feels complicated. My conclusion: I'm making it more complicated than it
> should be???
If you feel more comfortable using stdout/stdin or cout/cin, then go ahead and
use them instea
gger operations on PowerPC?
Switch to an Intel Mac, or revert to an older version of Xcode. This was
unfortunately broken in the last release of Xcode for Leopard, but only on PPC
Macs, and I wouldn't hold your breath waiting for a fix.
Nick Zitzmann
<ht
u'll have to create a dummy window as well, though you won't need to open it.
Nick Zitzmann
<http://www.chronosnet.com/>
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to th
the
NSCachedImageRep into an NSImage if it isn't in one already, calling
-TIFFRepresentation on the image, and using the resulting data to create a new
NSBitmapImageRep.
Nick Zitzmann
<http://www.chronosnet.com/>
___
Cocoa-dev mailing lis
the
> NSRect should be. I'll be printing so is there an NSRect I can grab
> from NSSharedPrintInfo somewhere??
Not an NSRect, but you can get an NSSize from [[NSPrintInfo sharedPrintInfo]
paperSize]. From that, you can build an NSRect with that va
d you try something like this: (written in Mail, untested but it
ought to do what you need)
NSMutableArray *unselectedObjects = [[[controller arrangedObjects] mutableCopy]
autorelease];
[unselectedObjects removeObjectsInArray:[controller selectedObjects]];
Nick Zitzmann
<htt
:[NSURLRequest requestWithURL:[NSURL
> URLWithString:@"http://nytimes.com";]]];
> NSView *printView = [[[myWebView mainFrame] frameView] documentView];
You must place the WebView in a window or else it won't render. It's a dumb but
necessary requirement. So you'll n
ueue:YES];
[pool drain];
}
[webView setNeedsDisplay:YES];
When this loop is done, any print operation you perform on the web view ought
to work.
Nick Zitzmann
<http://www.chronosnet.com/>
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.
you want to happen.
> But I need it to be "/submit.php?do=submit HTTP/1.1\r\n". So how do I make
> these changes?
Are you sure you're setting the URL correctly? That bit is part of the URL.
What is the returned value of [request URL] prior to placing the request
C_METACLASS_$_NSArray
superclass 0x19d4a8 _OBJC_CLASS_$_NSObject
[...]
name 0x13597e initWithObject:
types 0x139f58 @2...@0:8...@16
imp 0x101820 -[NSArray initWithObject:]
Nick Zitzmann
<http://www
the event location, converting
it from window to view coordinates, and then using -rowAtPoint: to get the row
number.
Nick Zitzmann
<http://www.chronosnet.com/>
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin reque
ezier
path over the top of the row.
Nick Zitzmann
<http://www.chronosnet.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
er to register the view's drag types?
Nick Zitzmann
<http://www.chronosnet.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-ad
ng Bezier paths, or use a vector-based font for the
symbols. Just stay away from scalar graphics, such as compositing bitmap images
or old-school fonts, and you should be fine wrt zooming or changing the DPI.
Nick Zitzmann
<http://www.chronosnet.com/>
___
you observed doesn't surprise me too much...
Of course, if you really want to know what's going on, then you can try
downloading the WebKit source from <http://webkit.org/> and building your
application against an open-source build of WebKit rather than the system's
build.
warning and then act on the warning. Does such a warning exist
> for the Mac?
Unfortunately no, but that would be a good idea, especially in 32-bit apps.
Have you filed an enhancement request?
Nick Zitzmann
<http://www.chronosnet.com/>
___
C
On Apr 21, 2010, at 6:31 PM, k...@highrolls.net wrote:
> when I ctrl-click should rightMouseDown be called or do I have to look at the
> modifier flags in mouseDown ?
No and yes. What exactly are you trying to accomplish?
Nick Zitzmann
<http://www.chron
own if
> ctlr key is down
The override you're looking for is actually -menuForEvent:, not
-rightMouseDown: or -mouseDown:. Control-clicking is not the same as a right
click.
Nick Zitzmann
<http://www.chronosnet.com/>
___
C
caused
> by things related to "thread-safe", linking a seperate WebKit might not help.
No, but it would allow you to see what is really going on inside the debugger.
That's much easier to do when you have the source code.
Nic
ed)
> }
I don't understand what you're trying to say. The static analyzer is telling
you the truth, because you are leaking two objects in that code, unless that
code will only be run with GC enabled.
Nick Zitzmann
<http://www.chronosnet.com/>
_
gt; does this ring any bells with people?
Are you ordering your windows in the main thread, or in another thread or block?
Nick Zitzmann
<http://www.chronosnet.com/>
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post adm
d or not, so perhaps this is an SL->Tiger versionitis issue?
> But not-so-very-long-ago builds, from this same configuration, work for this
> tester, so that seems ruled out. Is Tiger simply not expected to grok Snow
> Leopard NSDCs?
It's not expected to grok NSDCs a
t frameworks in Leopard had some interesting
bugs that weren't fixed until Snow Leopard came out...
* Tiger's 64-bit support was limited to programs that only used the standard C
and C++ libraries.
Nick Zitzmann
<http://www.chronosnet.com/>
__
close; you need to put the changes into the text storage, not the text
container.
Nick Zitzmann
<http://www.chronosnet.com/>
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments
es as NSCFDictionary. Instruments suggests it is CFBasicHash. Is
> CFBasicHash part of the internals for NSCFDictionary? Google doesn't have
> much info on this.
I think so. A lot of Foundation objects are actually class clusters, and
NSDictionary is one of the
ropped support there?
Xcode usually only includes SDKs for the current and previous two major
versions of the OS.
BTW, this is probably a better question for the xcode-users list...
Nick Zitzmann
<http://www.chronosnet.com/>
___
Cocoa-dev mai
e value of -[NSView needsDisplay], but the value never changes,
and it keeps getting redisplayed anyway. Apparently the value is a perpetual
YES...
Nick Zitzmann
<http://www.chronosnet.com/>
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please d
ifferent place that is constantly getting redrawn for no apparent
reason.
Nick Zitzmann
<http://www.chronosnet.com/>
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the list.
Contact
On May 15, 2010, at 3:00 PM, Uli Kusterer wrote:
> override its drawRect: ? How else would you get the dirty rects to see what
> is dirtied?
Right, but what is causing -drawRect: to be called? That's what I want to know.
Nick Zitzmann
<http://www.
s list, but anyway, you must use
Xcode 2.5 to convert pbxproj bundles to xcodeproj bundles. Xcode 2.5 was
intended for Tiger and Leopard; it works under Snow Leopard but not very well
(it is not supported, and might crash at some point or another).
Nick Zitzmann
<http
lf by using otool.
Nick Zitzmann
<http://www.chronosnet.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
and then call the invocation's
-performSelectorOnMainThread:... method to invoke the invocation on the main
thread. This works any time you need to call something on the main thread, but
you need to set more than one argument, or the method has arguments that take
primitives instead of object
On May 18, 2010, at 11:38 AM, Laurent Daudelin wrote:
> What's the best way to detect if a modifier key is held down when the user
> click to open a menu?
[[NSApp currentEvent] modifierFlags] ought to work...
Nick Zitzmann
<http://www.
t; Can someone explain to me why this happens please and how to solve it?
Have you tried using the object alloc instrument in Instruments? That will show
you what is really going on with your application's memory usage.
Nick Zitzmann
<http://www.chronosnet.com/>
___
roject for a Cocoa
> app, nothing fancy, then opened the MainWindow.xib in IB to add the text
> field and the webview.
>
> Anyone has any idea?
Did you remember to link your target to the WebKit framework? That's where the
WebVi
u're going to do something like that, then you need to work on a copy of
the enumerated array. You cannot mutate collection objects that are being
enumerated.
Nick Zitzmann
<http://www.chronosnet.com/>
___
Cocoa-dev mailing list (Coco
g twice on the same
observer after the notification is posted? If so, are you sure the object is
the same twice ("self" has the same address when both breakpoints are hit)?
Nick Zitzmann
<http://www.chronosnet.com/>
___
1 - 100 of 1017 matches
Mail list logo