On Aug 6, 2008, at 12:43 AM, Eric Lee wrote:
I've been having trouble implementing some protocols for table view.
I just copied and pasted from my other code into this .m file,
changed the variables so that it matched the variables in the .h
file, but it has 6 errors, and I can't find out
On Aug 5, 2008, at 22:43, Eric Lee wrote:
#import drawerTableView.h
@implementation drawerTableView
- (IBAction)makeDrawerVisible:(id)sender
{
[drawer setLeadingOffset:0];
[drawer setTrailingOffset:0];
[drawer openOnEdge:1];
[itunessongs
Ken Thomases mailto:[EMAIL PROTECTED] wrote (Tuesday, August
5, 2008 9:34 PM -0500):
On Aug 5, 2008, at 10:20 PM, James Bucanek wrote:
First rule of optimization: Don't!
Get the code working and profile it. Then if, and only if, it's a
significant performance bottleneck THEN consider
Hello,
I need to draw NSString rotated to 90 degrees. Now I have the code:
NSRect rcWhereToDraw = NSMakeRect(); // - rect is already
rotated here
[str drawInRect:rcWhereToDraw withAttributes:attributes]; // string
will be drawn non-rotated
as far as I know, I need something like this:
On Aug 5, 2008, at 15:28 , Uli Kusterer wrote:
On 05.08.2008, at 22:24, Marcel Weiher wrote:
On Aug 5, 2008, at 2:57 , Uli Kusterer wrote:
Lucky then, that I adopted GNUstep-style ASSIGN() and DESTROY()
macros for these purposes, and since most of my code still needs
to be
Hi,
because i'm currently facing a comparable situation - i'd like to
migrate old NeXT style mails and mailboxes and also some old NeXTstep
based applications for my personal use - i'm really interested in any
possible solutions.
I still have access to some of the early Rhapsody CDs, but
Shouldn't be this instead (check the translations' signs) ?
[tr translateXBy:dx yBy:dy]; // center or rect will be the center of
rotation
[tr rotateByDegrees:90]; // rotate it
[tr translateXBy:-dx yBy:-dy]; // move it back
Le 6 août 08 à 08:46, Vitaly Ovchinnikov a écrit :
Hello,
I need
The try/catch setup is well optimized and introduces very little
overhead. So in the nominal case, where there is no exception,
there's almost no overhead at all. Even if an exception was
thrown, NSException is fairly lightweight.
This is not particularly accurate.
There, I'll beg to
Hi,
maybe you can use a thread and set the thread priority low. I never
tried it, just an idea.
http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSThread_Class/Reference/Reference.html#/
/apple_ref/occ/clm/NSThread/setThreadPriority:
I think, that this a better
Le 6 août 08 à 09:50, Bill Bumgarner a écrit :
On Aug 6, 2008, at 12:19 AM, Ralf Edmund Stranzenbach wrote:
because i'm currently facing a comparable situation - i'd like to
migrate old NeXT style mails and mailboxes and also some old
NeXTstep based applications for my personal use - i'm
Given a CGImageRef, how can I autorelease it?
Perhaps this is obvious, or perhaps its impossible, but googling
hasn't found me the answer yet except for a tantalizing comment in
the docs for NSBitmapImageRep:
- (CGImageRef)CGImage (added in 10.5)
Returns an autoreleased CGImage object (an
Will test this too, but I don't think it will work.
In my case I moved rectangle from it's real position to zero, then
rotate around zero and then moved back.
In your case I will move it far from zero and then rotate...
But I will give it a try.
On Wed, Aug 6, 2008 at 11:20 AM, Jean-Daniel Dupas
Am Di,05.08.2008 um 22:20 schrieb Andy Lee:
On Aug 5, 2008, at 3:39 PM, I. Savant wrote:
I'm going to make a bold statement: You should only ever call [super
someMethod] from within an overridden someMethod implementation. I
believe this is true in all cases (because I can't at the moment
A shot in the dark...
Are you manually activating the run loop using NSDefaultRunLoopMode? I
recently encountered the same problem (using Core Animation as well),
and eventually tracked it down to the way I was waiting for messages
from a CFMessagePort to arrive. Specifying a custom run
Since CGImage is derived from CFType you can just do:
[(id)aCGImageRef autorelease]
The reason being that CFType knows how to handle a -release message,
and autorelease is just a way of deferring that message.
On 6 Aug 2008, at 09:29, Peter N Lewis wrote:
Given a CGImageRef, how can I
Did you try a subclass of NSWindow and overriding -setFirstResponder:?
Amin
Am Di,05.08.2008 um 15:36 schrieb an0:
I know how to do this for NSValidatedUserInterfaceItem by implementing
`- (BOOL)validateUserInterfaceItem:(id NSValidatedUserInterfaceItem
)anItem'; however, NSSegmentedControl
While maintaining some older Obj-C++ code I ran into the following
issue: typedef'ed pointer/object types break bindings in Objective-C.
To illustrate, the model code is similar to this:
Model.mm
#import Cocoa/Cocoa.h
typedef NSString MyString;
@interface Model : NSObject {
Sorry, mentioned incorrect url for KBML. Working url for KBML is:
http://koala.ilog.fr/kbml/.
Any pointers on this would greatly help.
Thanks,
- Apparao.
On Wed, Aug 6, 2008 at 11:16 AM, Apparao Mulpuri
[EMAIL PROTECTED] wrote:
Hi Guys,
In my Cocoa application, i am planning to use KBML
On Aug 6, 2008, at 5:47 AM, patrick machielse wrote:
typedef NSString MyString;
[...]
In IB the value binding of an NSTextField is connected to the
Model's 'text' property. This works as expected when the code is
compiled as Objective-C++. Changing to Objective-C still compiles
Hi,
just to let you know:
I'm trying to use the Message Framework with Garbage Collection
enabled and it crashes deep down in the framework.
I filed a bug: 6128812
You can [...] use Pantomime,
Pantomime is not GC-ready. I haven't tried to switch on CG and see
what happens though.
Be carefull when you mix CFType memory management, and obj-c memory
management.
It works well when you do not use GC, but may become problematic if
you do not take special care with GC code.
If I'm not wrong, it should be something like this:
[NSMakeCollectable(aCGImageRef) autorelease];
On 6 Aug 2008, at 11:14, Ken Thomases wrote:
On Aug 5, 2008, at 9:51 PM, Gerriet M. Denkmann 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 identical to this
What's the proper way to make a C/ObjC program (Foundation tool)
be used with the pipe operator? I want to make a simple filter that
takes the output of ls -la and reformats it to appear more like the
MS-DOS directory listing. So, I would do something like ls -la |
mydosfilter and get a
Hi
Please see the question in the comments of the following code.
NSMutableDictionary* aDictionary = (initialized with some objects)
for (id theKey in aDictionary) {
id anObject = [[aDictionary objectForKey:theKey] retain];
[aDictionary removeObjectForKey:theKey];
// Question: will this
On 6 Aug 2008, at 15:57, William Squires wrote:
What's the proper way to make a C/ObjC program (Foundation tool) be
used with the pipe operator? I want to make a simple filter that
takes the output of ls -la and reformats it to appear more like
the MS-DOS directory listing. So, I would
Am Mi,06.08.2008 um 16:27 schrieb Wayne Shao:
Hi
Please see the question in the comments of the following code.
NSMutableDictionary* aDictionary = (initialized with some objects)
for (id theKey in aDictionary) {
id anObject = [[aDictionary objectForKey:theKey] retain];
[aDictionary
On Wed, Aug 6, 2008 at 6:08 AM, Negm-Awad Amin [EMAIL PROTECTED] wrote:
Am Mi,06.08.2008 um 14:26 schrieb Jean-Daniel Dupas:
Be carefull when you mix CFType memory management, and obj-c memory
management.
It works well when you do not use GC, but may become problematic if you do
not take
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
identical to this frame (corrupt stack?)
When I
Am Mi,06.08.2008 um 16:48 schrieb Wayne Shao:
On Wed, Aug 6, 2008 at 7:41 AM, Negm-Awad Amin negm-
[EMAIL PROTECTED] wrote:
Am Mi,06.08.2008 um 16:27 schrieb Wayne Shao:
Hi
Please see the question in the comments of the following code.
NSMutableDictionary* aDictionary = (initialized
Am Mi,06.08.2008 um 16:48 schrieb Wayne Shao:
On Wed, Aug 6, 2008 at 7:41 AM, Negm-Awad Amin negm-
[EMAIL PROTECTED] wrote:
Am Mi,06.08.2008 um 16:27 schrieb Wayne Shao:
Hi
Please see the question in the comments of the following code.
NSMutableDictionary* aDictionary = (initialized
In addition to what the others said:
On Aug 5, 2008, at 10:43 PM, Eric Lee wrote:
I've been having trouble implementing some protocols for table view.
I just copied and pasted from my other code into this .m file,
changed the variables so that it matched the variables in the .h
file, but
On Tue, Aug 5, 2008 at 10:43 PM, Eric Lee [EMAIL PROTECTED] wrote:
I've been having trouble implementing some protocols for table view. I just
copied and pasted from my other code into this .m file, changed the
variables so that it matched the variables in the .h file, but it has 6
errors, and
Apparao Mulpuri wrote:
Sorry, mentioned incorrect url for KBML. Working url for KBML is:
http://koala.ilog.fr/kbml/.
I was just about to point that out to you. I found the above also by
googling kbml.
Any pointers on this would greatly help.
My question is, what are you trying to do
On Aug 6, 2008, at 1:02 AM, Jean-Daniel Dupas wrote:
Especially if you considere that all Mac OS X versions prior to
10.4.x are PPC only.
Only back to Mac OS X 10.0. Prior versions ran on an assortment of
different platforms, including i386, m68k, PA RISC, and Sparc (in the
shipping
I don't know anything about NSDefaultRunLoopMode and have simply been trying
to replace my layered list of draw lists with layers in what may or may not
be a scrolling view. I'm not doing anything with animation yet. To say
this has been problematic would be an understatement.
Also, in spite of
I'm trying to create a view with a background image, but getting error
after error...
- (void)drawRect:(NSRect)rect {
NSRect bounds = [self bounds];
NSImage *background = [[NSImage alloc] init];
[background setImage:@ScrollBackground];
[[NSColor
On Wed, Aug 6, 2008 at 11:50 AM, Brad Gibbs [EMAIL PROTECTED] wrote:
I've added a .png named ScrollBackground to my Resources folder. The code
compiles but I get a warning: NSImage may not respond to '-setImage'.
That would be because, indeed, NSImage does not respond to -setImage.
Thanks. I was looking at NSImageView (which does have a setImage:
method).
On Aug 6, 2008, at 8:58 AM, Kyle Sluder wrote:
On Wed, Aug 6, 2008 at 11:50 AM, Brad Gibbs [EMAIL PROTECTED] wrote:
I've added a .png named ScrollBackground to my Resources folder.
The code
compiles but I get a
The solution I would use would be to implement a category on super's
class, or rename the method (probably the best option from a design
standpoint). For instance, suppose we have (stretching the objc syntax
a bit)
@implementation FooClass
- (void)sayHi {
NSLog(@Hi);
}
@end
Am Mi,06.08.2008 um 18:30 schrieb Roland King:
for (id theKey in aDictionary) {
id anObject = [[aDictionary objectForKey:theKey] retain];
[aDictionary removeObjectForKey:theKey];
// Question: will this removal break or corrupt the loop of
enumerating the
elements?
[anObject someMessage];
Am Mi,06.08.2008 um 18:49 schrieb Andrew Merenbach:
On Aug 6, 2008, at 9:30 AM, Roland King wrote:
for (id theKey in aDictionary) {
id anObject = [[aDictionary objectForKey:theKey] retain];
[aDictionary removeObjectForKey:theKey];
// Question: will this removal break or corrupt the loop of
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
On 8/6/08 7:59 PM, Gerriet M. Denkmann said:
If someone wants to check
Comrades -
It looks like PDFKit is aimed at simply reading and navigating within
an existing PDF file, but what I need to do is create a new PDF and
write some simple text to it. I know that the Preview app does that
for a lot of apps, but I would like to bypass that, too. I simply
want
Dude!
That does look simple. I figured it would be.
Thanks,
Paul
On Aug 6, 2008, at 11:42 AM, Charles Steinman wrote:
--- On Wed, 8/6/08, Paul Archibald [EMAIL PROTECTED] wrote:
It looks like PDFKit is aimed at simply reading and
navigating within
an existing PDF file, but what I need to
On Aug 6, 2008, at 11:37 AM, Paul Archibald wrote:
It looks like PDFKit is aimed at simply reading and navigating
within an existing PDF file, but what I need to do is create a new
PDF and write some simple text to it.
Sorry, I had to jump in and refute that — PDF Kit does allow PDF
Yes, he right. I've just tested it and it works fine.
I though that -translateXBy:yBy: will move my object, but it moved
pivot point... This is hard, especially with revesed OY axis ;)
Thanks to you and Jean-Daniel.
On Wed, Aug 6, 2008 at 10:19 PM, Steve Christensen [EMAIL PROTECTED] wrote:
No,
Hi Nicolas, David,
I'm having the exact same problem. Loading collections of small images
(jpeg in my case).
The only slight difference for me is that if I run my application
under XCode (Debug build), I don't get any errors. All of the images
load fine. However, when I run the (Debug) binary,
On Wed, Aug 6, 2008 at 4:37 PM, Vitaly Ovchinnikov
[EMAIL PROTECTED] wrote:
Yes, he right. I've just tested it and it works fine.
I though that -translateXBy:yBy: will move my object, but it moved
pivot point... This is hard, especially with revesed OY axis ;)
Well, it all happens in one
Yes, you right, but I expected what I need to move text to the zero
point, rotate it and move it back. But NSAffineTransform works quite
the contrary and requires to move the zero point to the text and then
back. That was a big surprise for me.
On Thu, Aug 7, 2008 at 12:55 AM, Kyle Sluder
[EMAIL
Couldn't tell either of you why your having issues without seeing
code, and probably not even then, but this is probably worth a bug
report.
On Aug 6, 2008, at 1:52 PM, James Trankelson wrote:
I'm having the exact same problem. Loading collections of small images
(jpeg in my case).
On
Off the top of my head, with a number of files being opened so high and
relatively close to the value you get from getrlimit with a parameter of
RLIMIT_NOFILE, I'd suggest checking to see if that's the problem.
Hi Nicolas, David,
I'm having the exact same problem. Loading collections of small
On Aug 6, 2008, at 10:36 AM, mm w wrote:
usually, in a better design view you do the opposite, a safe copy of
the keys that you need in a new dict, then you release the old man,
you have a really strange programming approach,
aDictionary - aNewDictionary with only my wanted keys,
with your
On Tue, Aug 5, 2008 at 10:18 PM, Jim Crafton [EMAIL PROTECTED] wrote:
Is it possible to create a custom event for an apps internal usage and
have it posted to the NSApp, and then processed later on? If so, how
would one do this? I'm not sure how to
a) create the event
b) get notified when the
On Aug 6, 2008, at 3:01 PM, mm w wrote:
i will return the question why fast enumerator prevents against this?
maybe in-memory Pile?, you should have answered to the question alone
Without knowing the workings of fast enumeration, I am at a loss as to
why it would prevent it -- unless it
On Tue, Aug 5, 2008 at 10:16 PM, Jim Crafton [EMAIL PROTECTED] wrote:
Is there a way to handle idle time in an NSApplication? In Win32 or
Carbon, since you manually write the actual while loop that processes
the events, this is pretty easy to do. Is there anything like this in
Cocoa? I've got
I'm trying to learn more about string manipulation and want to be able
to extract a single character from a string. I think I need to use
subStringWithRange (exacting from and to the same character location)
but I'm not sure and I'm also unsure how to code it.
Basically I'm after the
On Aug 6, 2008, at 5:23 PM, Phil Faber wrote:
I'm trying to learn more about string manipulation and want to be
able to extract a single character from a string. I think I need to
use subStringWithRange (exacting from and to the same character
location) but I'm not sure and I'm also
On Wed, Aug 6, 2008 at 6:23 PM, Phil Faber [EMAIL PROTECTED] wrote:
NSLog(@Character %i of %@ is %@,i,pass1,[pass1 substringWithRange:1,2]);
You need to pass an NSRange struct to -[NSString substringWithRange:].
You can make one using the NSMakeRange() function. If you didn't
know that
I want to make a simple filter that takes the output of ls -la and
reformats it to appear more like the MS-DOS directory listing. So, I
would do something like ls -la | mydosfilter and get a directory
listing with the filename first, the # bytes second, then the
timestamp (leaving out
On Aug 6, 2008, at 2:08 PM, Vitaly Ovchinnikov wrote:
Yes, you right, but I expected what I need to move text to the zero
point, rotate it and move it back. But NSAffineTransform works quite
the contrary and requires to move the zero point to the text and then
back. That was a big surprise for
Hi,
I'm developing an application to support third-party extensions that filter
text. Each filter consists mainly of a property list and an executable. The
idea is that the text of the current document goes into the executable along
with settings specified in the property list (as arguments); text
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 for the clip compression/writing. That was
easily done using the
Hello,
I'm one of the supporters of custom NSSpellServer effort called
SpellCheck that does provide spell support for Eastern Europe
languages missing in Leopard built-in spell checker (We got Polish
interface but no Polish spell checker). SpellCheck uses Cocoa's
NSSpellServer interface,
Hi,
In some of Preferences's pane, when clicking a + sign, a modal dialog comes
up not separately but as a child shadowed dialog sticking out from the bottom
of the tool bar. What is that kind of dialog called? and how to program it?
Thanks for the help.
Pan
Greetings! :)
I'm experimenting with core data, bindings work just fine, I love them
and it's great and all. :)
but I want to import a massive file into the database. so I'm trying
to create it programatically.
So far I've been able to insert records in simple entities, using some
code
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 box), you could use standard cocoa APIs, you
wouldn't have to deal
I have a token field in a drop panel that I am using to store keyword search
tags. When I raise the panel all previously saved tags are selected.
Clicking within the field alleviates the problem. All is working fine. It's
mainly an aesthetic issue.
is there something that I can do to prevent this?
Hi!
I'm winding my way through KVO, readonly properties and bindings.
I have an object which has a bool state. I have a method that toggles
that state.
I have a button that calls the method that toggles the state. The
button has a title, which I've bound to a readonly property, which
Aha!
I was missing the willChangeForKey: call.
- (IBAction) toggleIsCloning: (id) sender
{
[self willChangeValueForKey:@cloningLabel];
self.isCloning = !self.isCloning;
[self didChangeValueForKey:@cloningLabel];
}
Now it works fine, thanks!
On Aug 6, 2008, at 10:07 PM,
If your isCloning is a property itself, can you use the dependent key
registration logic instead?
[ self setKeys:[ NSArray arrayWithObjects:@isCloning, nil ]
triggerChangeNotificationsForDependentKey:@cloningLable ];
I've never tried this, but it's documented here and I recall reading
about
70 matches
Mail list logo