On Aug 5, 2008, at 5:37 PM, Robert McCullough wrote:
The IKSlideshowDataSource protocol for IKSlideshow includes several
optional methods, one of which is nameOfSlideshowItemAtIndex.
However, this method NEVER seems to be called. Anyone know why?
I think that it's simply a bug - most
On 8/7/08 10:44 AM, Peter N Lewis said:
[NSMakeCollectable(aCGImageRef) autorelease];
This appears correct, except for the fact that, for reasons known
only to Apple, although CFMakeCollectable is available in 10.4, the
trivial NSMakeCollectable macro is available only in 10.5.
Yes, quite
On Aug 6, 2008, at 7:44 PM, Peter N Lewis wrote:
This email sent to [EMAIL PROTECTED] 2:26 PM +0200 6/8/08,
Jean-Daniel Dupas wrote:
If I'm not wrong, it should be something like this:
[NSMakeCollectable(aCGImageRef) autorelease];
This appears correct, except for the fact that, for reasons
On 7 Aug 2008, at 01:16, Sean McBride wrote:
On 8/6/08 9:51 AM, Gerriet M. Denkmann said:
So it is kind of difficult to see where and why the stack gets
corrupted.
Have you tried 'stack canaries'?
http://lists.apple.com/archives/xcode-users/2007/Dec/msg00055.html
I have not. Seems this
On 6 Aug 2008, at 21:56, Shawn Erickson wrote:
On Tue, Aug 5, 2008 at 7:51 PM, Gerriet M. Denkmann
[EMAIL PROTECTED] wrote:
I have a document based app which works perfectly with -O0 or -O1 but
crashes with -O2 or higher.
When the crash occurs the debugger comes up and says: Previous frame
In the course of redirecting a spam email to a junkmail-training
address, I accidentally redirected it to the scores of original
recipients.
I apologize, and will not repeat the error.
— F
___
Cocoa-dev mailing list
On Thu, Aug 7, 2008 at 11:28 AM, Gerriet M. Denkmann
[EMAIL PROTECTED] wrote:
Maybe someone would want to check this on Leopard.
File a bug (http://bugreport.apple.com). That's the quickest way to
make sure that 1) if it's a problem, it gets fixed or 2) if it's not a
problem someone from Apple
I have an OutlineView, which has an Autosave Name set in IB.
Works fine. I change a column width, close the document, open another
document: the columns are just as they should be.
Let's say, I want the first column to be 2 cm wide.
Now I click on some disclosure triangle, new rows come up
Hi, I've notced that in most apps, at the top and bottom, there is a 1
pixel black line separating the gray window
from the (usually) white content.
This looks better than stock, which of course is why everybody and
Apple seems to be doing it. What is the canonical way to do this? Are
people
On Aug 7, 2008, at 10:06 AM, Gerriet M. Denkmann wrote:
I have an OutlineView, which has an Autosave Name set in IB.
Works fine. I change a column width, close the document, open
another document: the columns are just as they should be.
Let's say, I want the first column to be 2 cm wide.
The description for FSMoveObjectToTrashSync says: This function moves
a file or directory to the Trash, adjusting the object’s name if
necessary. (Meaning, I suppose, it appends a number to the filename
to make it unique in the Trash directory.)
Lovely, *exactly* what I need to do. Happy
Zphofar Ægir Spender Gulu___
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
Hmmm. Looks like no joy on this one then. A bit of a shame, as it
looks like this should be quite easy to do (although presumably it's
actually not, or else it would have been fixed). Still, at least it's
not *too* bad.
I'll file a bug as well.
If anyone has any pointers to the multiple cells
On Wed, Aug 6, 2008 at 9:38 AM, Mike Simmons [EMAIL PROTECTED] wrote:
I have an audio application that processes numerous audio streams into
ten-second clips, compresses the clips, and saves them to disk. Naturally, I
wanted to move from single-threaded processing to multithreaded processing
On Thu, Aug 7, 2008 at 2:54 PM, Cyril Kardassevitch [EMAIL PROTECTED] wrote:
hi list,
I've investigated further and try to reproduce the problem with a simpler
configuration. So, instead of using my custom objects, I've tried to pack
directly NSTextField and NSNumberFormatter into one object
I'd say just try the default options and see what happens. You might
also look at -[NSWorkspace
performFileOperation:source:destination:files:tag:] with
NSWorkspaceRecycleOperation as the first argument.
On Aug 7, 2008, at 2:03 PM, Randall Meadows wrote:
The description for
Use a non-textured window instead of a textured one. You'll get a
black line beneath the titlebar (or toolbar). To get a bottom bar with
a divider line, call this method on your window:
- (void)setContentBorderThickness:(CGFloat)borderThickness forEdge:
(NSRectEdge)edge
Set the thickness
On Aug 7, 2008, at 2:12 PM, Nate Weaver wrote:
I'd say just try the default options and see what happens. You might
also look at -[NSWorkspace
performFileOperation:source:destination:files:tag:] with
NSWorkspaceRecycleOperation as the first argument.
Yes, that's actually what I started
Hi Sumner,
Check out the discussion of -[NSWindow
setContentBorderThickness:forEdge:] in the AppKit release notes.
Here's some of it, but it's probably better to read it in context.
The behavior of -setContentBorderThickness:forEdge:NSMinYEdge and
-setAutorecalculatesContentBorderThickness:NO
On Thu, Aug 7, 2008 at 1:19 PM, Randall Meadows [EMAIL PROTECTED] wrote:
On Aug 7, 2008, at 2:12 PM, Nate Weaver wrote:
I'd say just try the default options and see what happens. You might also
look at -[NSWorkspace performFileOperation:source:destination:files:tag:]
with
On Aug 7, 2008, at 1:45 PM, Matthias Luebken wrote:
Hi
I'm new to Cocoa and Objective-C. Please point me to a different group
/ forum if this mailing-list isn't appropriate.
I have a fairly basic language question: Is there a module concept in
Objective-C / Cocoa? I'm thinking in terms of
[Sending again since I neglected to include the list in the first
reply. Tell me again why this list isn't configured with reply-to-all
by default?]
On Aug 7, 2008, at 2:23 PM, Ken Ferry wrote:
On Thu, Aug 7, 2008 at 1:19 PM, Randall Meadows [EMAIL PROTECTED]
pc.com wrote:
On Aug 7,
From the docs:
NSWorkspaceRecycleOperation
Move file to trash. The file is moved to the trash folder on the
volume containing the file[...]
So it's definitely a bug in NSWorkspace if it doesn't work this way.
On Aug 7, 2008, at 3:23 PM, Ken Ferry wrote:
On Thu, Aug 7, 2008 at 1:19 PM,
Part of the confusion may be the 'destination' parameter that
-[NSWorkspace performFileOperation:source:destination:files:tag:]
takes?
The recycle operation doesn't use the destination parameter. It
calculates the correct trash directory for you. The docs note that
not all operations use the
On Aug 7, 2008, at 2:36 PM, Nate Weaver wrote:
From the docs:
NSWorkspaceRecycleOperation
Move file to trash. The file is moved to the trash folder on the
volume containing the file[...]
So it's definitely a bug in NSWorkspace if it doesn't work this way.
On Aug 7, 2008, at 2:37 PM, Mark
Hm ...so my application is localized and uses the correct nib
depending on the locale.
Now the application also includes a framework. That framework also is
localized.
All files (in this case only string files - no nib) are in the
Resources folder (*.framework/Resources/*.lproj)
But
OK thanks for the tip. But it didn't work.
However the corrected code is :
- (id)initWithCoder:(NSCoder *)decoder
{
self = [super initWithCoder:decoder];
if (self)
[self setFormatter: [decoder
decodeObjectForKey:@floatFormatter]];
return self;
}
- (void)encodeWithCoder:(NSCoder
Hi List,
I have an app with a bound NSOutlineView (source list style) and
I'm wondering if there's a way to prevent deselection of a selection
by the user. The delegate method
- (BOOL)outlineView:(NSOutlineView *)outlineView shouldSelectItem:
(id)item;
is not called when no new item
In my application i have TextView with inLine images/attachments, if i
try to move the line to a different location using NSTypesetter's
setLineFragmentRect: forGlyphRange: usedRect: baselineOffset:
the inline attachments don't move with the text, even the drawRect for
the
When you call addSubLayer, you are in essence telling the layer to
animate so any properties you changed in the layer will animate after
adding the layer. You are doing this in your awakeFromNib which is
likely why you don't see the animation when it runs--not sure though.
You might want
The StandardKeyBinding plist binds named action methods to numerous
key combinations. Many of those action methods are declared in
NSResponder.h. Many others are not found in AppKit. For example,
moveToEndOfDocument: (command-down) is an NSResponder method, but
I am trying to implement a mini-size, square bevel button that pops up
a menu, i.e. a popup button with a square appearance and mini size,
but have not found a way to achieve this.
NSPopupButton does not support square button appearance, and doesn't
support setControlSize: (though it can
On Aug 7, 2008, at 23:01, Douglas Davidson wrote:
On Aug 7, 2008, at 1:54 PM, Torsten Curdt wrote:
Hm ...so my application is localized and uses the correct nib
depending on the locale.
Now the application also includes a framework. That framework also
is localized.
All files (in this case
On Aug 7, 2008, at 2:55 PM, Torsten Curdt wrote:
More details about the problem. For example, what the code looks
like in your framework at the point at which the localized strings
are being retrieved,
Just NSLocalizedString(@text, nil)
There's your problem. That obtains localized
On Aug 7, 2008, at 23:59, Douglas Davidson wrote:
On Aug 7, 2008, at 2:55 PM, Torsten Curdt wrote:
More details about the problem. For example, what the code looks
like in your framework at the point at which the localized strings
are being retrieved,
Just NSLocalizedString(@text,
On Aug 7, 2008, at 2:34 PM, Markus Spoettl wrote:
Basically I'd like the outline view only to change selection to
other items, but not completely deselect all items. Is there a way
to do this?
Sometimes things are really simple but I still fail to see them:
[outlineView
Hello Sean,
I'm no expert on the NSEditor informal protocol, but there was a recent
thread in which Ken Thomases reply (which I've quoted below) might be of help
to you.
http://www.cocoabuilder.com/archive/message/cocoa/2008/7/25/214002
Sincerely,
Joel
On Jul 25 06:13 AM, Ken Thomases
@synthesize greeting;
I'm writing a Cocoa framework that links with an old Carbon application. The
Carbon application indirectly interacts with it through a wrapper framework.
Within the Cocoa framework, I want to observe the
NSApplicationWillTerminateNotification notification, posted by the
On Aug 7, 2008, at 5:31 PM, Lars Sonchocky-Helldorf wrote:
Am 07.08.2008 um 21:45 schrieb Matthias Luebken:
Hi
I'm new to Cocoa and Objective-C. Please point me to a different
group
/ forum if this mailing-list isn't appropriate.
I have a fairly basic language question: Is there a
On Aug 7, 2008, at 2:53 PM, Rua Haszard Morris wrote:
I am trying to implement a mini-size, square bevel button that pops
up a menu, i.e. a popup button with a square appearance and mini
size, but have not found a way to achieve this.
NSPopupButton does not support square button
On Aug 7, 2008, at 1:19 PM, Randall Meadows wrote:
On Aug 7, 2008, at 2:12 PM, Nate Weaver wrote:
I'd say just try the default options and see what happens. You
might also look at -[NSWorkspace
performFileOperation:source:destination:files:tag:] with
NSWorkspaceRecycleOperation as the
Before I write the implementation for this NSString category method,
I'd like to know if it's already already available somewhere:
@interface NSString (URIQuery)
/*!
@method queryDictionary
@abstract Assuming that the receiver is a query string of
key=value pairs,
of the form
Well, I can't speak for James, but I have forced the thumbnail
creation to have at most 10 files opened at the same time, and it
doesn't make a difference...
I could understand a memory allocation issue, if the app didn't take
roughly 100 megs of RAM.
And besides, I can see there's a
On 8 Aug 2008, at 01:59, Johannes Fortmann
[EMAIL PROTECTED] wrote:
The problem here is that UTCDateTime is defined with #pragma pack 2 in
effect. That means the compiler packs with an alignment of 2, so the
whole structure has 8 bytes. The proper alignment (4) results in 12
bytes. Since
Gerriet M. Denkmann ([EMAIL PROTECTED]) on 2008-8-8 9:49 PM said:
some_type a;
NSValue *data = [ NSValue value: a withObjCType: @encode
(some_type) ];
followed by:
some_type b;
[ data getValue: b ];
is unsafe, dangerous and strictly to be avoided - especially if the
At 8:24 AM -0700 7/8/08, Chris Hanson wrote:
If you build with the Mac OS X 10.5 SDK, you should be able to use
NSMakeCollectable since it's declared as an inline function.
The earliest release of Mac OS X you're targeting is a function of
the Mac OS X Deployment Target build setting, not the
Joel Norvell ([EMAIL PROTECTED]) on 2008-8-7 7:07 PM said:
I'm no expert on the NSEditor informal protocol, but there was a
recent thread in which Ken Thomases reply (which I've quoted below)
might be of help to you.
http://www.cocoabuilder.com/archive/message/cocoa/2008/7/25/214002
Joel,
Hi all,
I'm using Xcode 3.1 and just switched to gcc 4.2 from 4.0, but I've
run into a problem with friend functions when compiling in objective-c+
+. I contrived an example that illustrates the problem:
1. Created new Cocoa project
2. Forced compilation of all files to use objective-c++
3.
On Aug 7, 2008, at 2:53 PM, Rua Haszard Morris wrote:
I am trying to implement a mini-size, square bevel button that pops
up a menu, i.e. a popup button with a square appearance and mini
size, but have not found a way to achieve this.
NSPopupButton does not support square button appearance,
On Aug 7, 2008, at 9:49 PM, Gerriet M. Denkmann wrote:
Or does anyone have a better idea?
Define your own struct or Objective-C class that has the same members
as UTCDateTime. Copy the values from a UTCDateTime to your struct or
class. Encode/Decode your struct or class from NSValue.
On Wed, Aug 6, 2008 at 3:27 AM, Erik Buck [EMAIL PROTECTED] wrote:
Um, why not just bind to values.description the -description method of
NSArray will return a string containing comma separated descriptions of the
contained objects. It will even work if the contained objects aren't all
Greetings:
I just came across a NSObject subclass written by someone, that
contains a couple of date/Time-processing methods (stringToDate,
visa-versa).
The methods were all class-level methods (+) vs (-); and hence, didn't
require the familiar alloc init instantiation methods.
I've
Hello,
I am trying to repeat my question in other words. :)
I have application written using Qt library. I have a network of about
40 mac minis. Now I have to connect to each of these macs using ARD
and change one parameter on main window of the application. I have
tried to use UI
Inside your for loop you are allocating 10,000 NSInvocationOperation
objects without adding them to your autorelease pool. Adding
[processor autorelease]; as the last line of the for loop killed
memory leakage for me. Without it my real memory would jump 10 MB
each time queueOperations: ran,
I attempted to try out what you were suggesting to see how well I
understood it. I got a compiler warning that said my controller class
may not respond to -selection.
Also, in the case where a controller might have selector that take
multiple arguments, I'm not sure how I could provide the
On Wed, Aug 6, 2008 at 9:00 PM, Jonathan deWerd [EMAIL PROTECTED]wrote:
I would make plugins of a different type: standard cocoa bundles (there are
a handful of tutorials on google). This way, people could install and
uninstall using the finder (a little known but helpful feature of the info
Thanks for your link.
It helped.
Pan CC: cocoa-dev@lists.apple.com From: [EMAIL PROTECTED] To: [EMAIL
PROTECTED] Subject: Re: how to create the special modal dialog Date: Wed, 6
Aug 2008 20:33:33 -0400 Pan, I think you're referring to are sheets.
See:
Which options argument are you talking about? I just do the
following and it works as advertised.
[[NSWorkspace sharedWorkspace]
performFileOperation:NSWorkspaceRecycleOperation
source:parentDirOfFile destination:@ files:[NSArray
arrayWithObject:@fileName] tag:nil]
The only slightly
Hi,
I'm trying to read some NSMultipleTextSelectionPboardType data off the
pasteboard:
NSData* data = [pboard dataForType:NSMultipleTextSelectionPboardType];
I've verified that the pasteboard is holding the data using -
[NSPasteboard availableTypeFromArray:], but I'm encountering two
hi,
I'm creating a cocoa pde.
You can see in the print dialog, a question mark button which opens the help
viewer when clicked.
We can display our custom help there using shouldShowHelp method, provided
that we have succesfully
registered the help. That method works fine in Leopard but not in
The moderation delays over the past three days should no longer be an
issue.
Thanks again for you patience.
sctot [moderator]
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the
Hi,I want to retrieve characters from NSString Can any one guide me how to
do it.
Ex:
NSString *ob=@TEST Object;
Now how to retrieve the Test Object value into my Char Array.
Regards,
Sri.
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
On 8 Aug 2008, at 09:04, Sean McBride wrote:
Gerriet M. Denkmann ([EMAIL PROTECTED]) on 2008-8-8 9:49 PM said:
some_type a;
NSValue *data = [ NSValue value: a withObjCType: @encode
(some_type) ];
followed by:
some_type b;
[ data getValue: b ];
is unsafe,
Hi all, is there a reasonably easy way to programmatically determine
whether a particular executable on-disk supports garbage collection?
Cocoa methods aren't necessary; all C functions are welcome. Poking
around in an executable's Mach-O headers is fine too, but I'm not sure
what to
Hi!
Would -[NSString getCharacters:] or -[NSString getCharacters:range]
(both of which return a unichar array), or better yet -[NSString
getCString:maxLength:encoding:] work for your purposes?
Even better still, perhaps one of
- [NSString cStringUsingEncoding:]
-
Not to reply to myself, but -- erm -- that second one should be -
[NSString getCharacters:range:] -- with a second colon (this one after
range). Also, sorry for top-posting, but I had to since I neglected
to bottom post in my original reply.
Cheers,
Andrew
On Aug 7, 2008, at 9:53
Hello, this is my first post. I am a C/C++ developer that has only recently
begun to explore Obj-C and its nuances. The need at hand is to develop an
application on the iPhone that will be able to communicate to a SOAP XML web
service on a Microsoft .NET server.
In .NET, the SOAP
Hey Cyril -
How are you adding the formatter to the text field? After you add the
formatter, does it appear as a child of the text field in the document
outline view? If not, that's your problem. Interface Builder maintains
a tree of all of the objects in the document. If you do something
On Fri, Aug 8, 2008 at 2:48 PM, André Pang [EMAIL PROTECTED] wrote:
Hi all, is there a reasonably easy way to programmatically determine
whether a particular executable on-disk supports garbage collection? Cocoa
methods aren't necessary; all C functions are welcome. Poking around in an
On Aug 7, 2008, at 11:08 AM, Lee, Frederick wrote:
1) why use instantiated objects versus classes (via class
methods)?
Because class methods other than +new return autoreleased objects,
which makes non-GC memory management a little bit easier.
2) Are classes stored in the
Hello again,
I have two basic Obj-C string question, please see the code below:
//.h file
@interface SomeClass : NSObject {
@private
NSMutableString *_someString;
}
@property (nonatomic, retain) NSMutableString *someString;
-(void)DoTheStringThing:(NSString *)aString;
@end
//.m file:
On 8 Aug 2008, at 3:08 am, Lee, Frederick wrote:
Greetings:
I just came across a NSObject subclass written by someone, that
contains a couple of date/Time-processing methods (stringToDate,
visa-versa).
The methods were all class-level methods (+) vs (-); and hence, didn't
require the
On Aug 7, 2008, at 10:27 PM, SridharRao M wrote:
Hi,I want to retrieve characters from NSString Can any one guide me
how to
do it.
What do you mean by that? If you want to translate an NSString into a
C char array, then use -UTF8String. If you want to get a range of 2-
byte characters
On Aug 7, 2008, at 2:15 PM, phil swenson wrote:
I'm trying to parse an xml file, so to get started I put the xml in a
String:
NSString *xml = @?xml version=\1.0\
encoding=\UTF-8\?personfirstLarry/firstlastFurg/last/
person;
Now I need to move this to a NSXMLDocument, which takes an NSData.
On Fri, Aug 8, 2008 at 3:49 PM, Ken Thomases [EMAIL PROTECTED] wrote:
On Aug 7, 2008, at 2:15 PM, phil swenson wrote:
I'm trying to parse an xml file, so to get started I put the xml in a
String:
NSString *xml = @?xml version=\1.0\
75 matches
Mail list logo