Hi
I'm writing two apps: A server and client and am having some trouble figuring
exactly what to link to in the client program. The server application has a
main class that has dozens of dependencies. I don't want to have to import all
the server app dependencies into the client application as
Hello everyone
I`m getting this strange warning when i start my program in debugging mode
and repeats for every step.
*
*
*Asertion failed: (cls), function getName, file
/SourceCache/objc4_Sim/objc4-427.1.1/runtime/objc-runtime-new.m, *
*
*
*
*
*I created my program in xcode 3.2.2 but i`m
Bill Bumgarner b...@mac.com writes:
Thus, with the latest bleeding edge compiler, all you need is the
@property() (and cleanup in -dealloc) to declare a fully KVO
compliant attribute of your class.
Is this also supported by the debugger? In XCode 3.x I once tried to
omit the iVars but that's
On Sep 20, 2010, at 3:30 AM, Stefan Nobis wrote:
Bill Bumgarner b...@mac.com writes:
Thus, with the latest bleeding edge compiler, all you need is the
@property() (and cleanup in -dealloc) to declare a fully KVO
compliant attribute of your class.
Is this also supported by the debugger?
On Sep 19, 2010, at 12:52 PM, Jim Thomason wrote:
I'm refactoring and updating a lot of my older code, and one of the
things I'm finally looking into is declaring things as properties.
But...what's the point? I've been trying to read up on the subject and
have found a lot of posts and
I've set up a view in it's own separate NIB. I've done this because the
same view will be loaded multiple times into an NSTabView (where each tab is
a conversation with a different person). The NIB contains the following
elements:
NSTextField (*) (top of the screen, anchored top, left and
On 20 Sep 2010, at 11:47, Chris Hanson wrote:
GDB doesn’t support dot syntax for invoking property getters, so you just
need to use bracket syntax when doing it:
Maybe Stefan meant rather that the ivars do not show up in the debugger window.
It's a real pain to have to go to the console
How do I send messages to a server's vended object without having to include
the server's entire dependency tree?
Incorporate the methods that you actually need for remote interaction into a
protocol that is defined in a separate .h file, and #import it at both ends of
the connection. You
On Sep 18, 2010, at 5:43 PM, Raleigh Ledet wrote:
Then you were not aware that if you can load a nib multiple times to
create multiple instances of the same view hierarchy.
Correct. I did not know that you could load a nib multiple times.
Thanks for the info.
--Richard
On Sep 20, 2010, at 2:23 PM, Richard Somers wrote:
On Sep 18, 2010, at 5:43 PM, Raleigh Ledet wrote:
Then you were not aware that if you can load a nib multiple times to create
multiple instances of the same view hierarchy.
Correct. I did not know that you could load a nib multiple
On Sep 19, 2010, at 6:36 PM, k...@highrolls.net wrote:
So I thought I would draw the images as subclasses of NSImage in the tool
box. Use mouseDown and mouseMoved to move them around the tool box.
Did you perhaps mean NSImageView?
Use drag and drop to go from the tool box to the layout and
On Sep 20, 2010, at 5:45 AM, Geoffrey Holden wrote:
My problem is that when I load this view into a tab (using the attached
code), the textview doesn't fit on the screen. It covers up the top
textfield and seems to have it's top edge somewhere above the tabview (as
follows)
The most common
On Sep 18, 2010, at 11:14 AM, Ken Tozier wrote:
I'm writing two apps: A server and client and am having some trouble figuring
exactly what to link to in the client program. The server application has a
main class that has dozens of dependencies. I don't want to have to import
all the
You make an excellent point. But you raise two questions.
1. If '' isn't the correct way to initialize, what is?
2. Should I just create an arbitrary placeholder framesize and use that
during initialization? Or is it acceptable to set no framesize at all at
this stage?
Thanks for your help.
On
Hi,
I have a main process and an auxiliary process that vends
NSDistantObject to do some job for the main process upon request. In
other words, the main process is a client, and the auxiliary process
is a server. I have been able to implement this when there is only one
thread in the client
Hi All,
I have a test program which is command line tool type when I created the
project.
I also have added a class into this project, called DemoPoint.
My main function showed as follow:
int main (int argc, const char * argv[]) {
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
On Sep 20, 2010, at 10:06 AM, ico wrote:
can someone tell me what problem is, NSInvocationOperation allocation is
even failed, I guess it maybe a simple problem
Not without a crash report. You didn't release the target before creating the
invocation operation, did you? Also, if you're using
Antonio Nunes devli...@sintraworks.com writes:
Maybe Stefan meant rather that the ivars do not show up in the
debugger window.
Yes, that was the point of the question.
--
Until the next mail...,
Stefan.
pgpasS7cYk4A8.pgp
Description: PGP signature
On Sep 20, 2010, at 11:06 AM, ico wrote:
NSInvocationOperation *theOp = [[[NSInvocationOperation alloc]
initWithTarget:dp selector:@selector(massiveWork:) object:nil] autorelease];
The selector here is massiveWork: with a colon.
- (void) massiveWork {
The selector for this method is
On Sep 20, 2010, at 8:31 AM, Geoffrey Holden 45rpmli...@googlemail.com wrote:
You make an excellent point. But you raise two questions.
1. If '' isn't the correct way to initialize, what is?
Read the docs. NSView has two dedicated initializers, neither of which is -init.
2. Should I just
On Sep 20, 2010, at 8:51 AM, Oleg Krupnov oleg.krup...@gmail.com wrote:
Hi,
I have a main process and an auxiliary process that vends
NSDistantObject to do some job for the main process upon request. In
other words, the main process is a client, and the auxiliary process
is a server. I
Thanks, Kyle
Multithreading is not a prerequisite for serving multiple clients. Depending
on what your server's doing, sticking with NSRunLoop-based multiplexing might
be a lot easier.
The server's job is associated with slow devices, such as disk, but
are quite lengthy in time. In your
On Sep 20, 2010, at 9:23 AM, Stefan Nobis wrote:
Antonio Nunes devli...@sintraworks.com writes:
Maybe Stefan meant rather that the ivars do not show up in the
debugger window.
Yes, that was the point of the question.
And Chris explained that properties don't necessarily *have* ivars for
On 20 Sep 2010, at 19:27, Seth Willits wrote:
And Chris explained that properties don't necessarily *have* ivars for you to
look at anyway. If you want to see its value, then you need to run the
print/po command on the gdb command line.
Fair enough. And what I would like to see, is the
I sent this out last week and go no replies. Please excuse me for sending it
out again but I want to try one more time in case someone has an answer.
I've been spending some time searching and thinking about how I can make a
bookmark bar like in Safari or Firefox. It has some of the
On 20 Sep 2010, at 19:42, Brad Stone wrote:
I sent this out last week and go no replies. Please excuse me for sending it
out again but I want to try one more time in case someone has an answer.
I've been spending some time searching and thinking about how I can make a
bookmark bar like
On Mon, Sep 20, 2010 at 11:39 AM, Antonio Nunes
devli...@sintraworks.com wrote:
On 20 Sep 2010, at 19:27, Seth Willits wrote:
And Chris explained that properties don't necessarily *have* ivars for you
to look at anyway. If you want to see its value, then you need to run the
print/po command
There is also http://mattgemmell.com/2008/10/28/mgscopebar
On 20 Sep 2010, at 19:42, Brad Stone wrote:
I sent this out last week and go no replies. Please excuse me for sending it
out again but I want to try one more time in case someone has an answer.
I've been spending some time
On 20 Sep 2010, at 20:00, Kyle Sluder wrote:
Did you mean synthesized ivars? It is important you be precise.
Yes that is what I meant.
Automatically showing synthesized properties—or any properties at
all—would be a bad idea, because methods have side effects, and even
calling simple
Hello,
I've tried using the following code to save an attributed string as a docx
file.
//the attributed string is 'contents'
NSDictionary *attributes = [NSDictionary dictionaryWithObjectsAndKeys:
NSOfficeOpenXMLTextDocumentType, NSDocumentTypeDocumentAttribute, nil];
NSRange range =
On Mon, Sep 20, 2010 at 7:52 AM, Keary Suska cocoa-...@esoteritech.comwrote:
On Sep 20, 2010, at 5:45 AM, Geoffrey Holden wrote:
My problem is that when I load this view into a tab (using the attached
code), the textview doesn't fit on the screen. It covers up the top
textfield and seems
Is it not possible to set the file name text field before displaying
an NSSavePanel? I see no setters in the docs for filename.
-koko
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to
On Mon, 20 Sep 2010 15:11:21 -0600, k...@highrolls.net said:
Is it not possible to set the file name text field before displaying
an NSSavePanel? I see no setters in the docs for filename.
Incredibly, this was only added in 10.6. Are you on an older OS? See
setNameFieldStringValue:
--
On Sep 20, 2010, at 3:25 PM, Sean McBride wrote:
Is it not possible to set the file name text field before displaying
an NSSavePanel? I see no setters in the docs for filename.
Incredibly, this was only added in 10.6. Are you on an older OS? See
setNameFieldStringValue:
Well, sort of.
On Sep 20, 2010, at 12:57 PM, Philip White wrote:
Hello,
I've tried using the following code to save an attributed string as a docx
file.
//the attributed string is 'contents'
NSDictionary *attributes = [NSDictionary dictionaryWithObjectsAndKeys:
NSOfficeOpenXMLTextDocumentType,
Thanks Sean and Nick.
Yeah I am on 10.5.8 for specific reasons.
-koko
On Sep 20, 2010, at 3:30 PM, Nick Zitzmann wrote:
On Sep 20, 2010, at 3:25 PM, Sean McBride wrote:
Is it not possible to set the file name text field before displaying
an NSSavePanel? I see no setters in the docs for
On Sep 20, 2010, at 12:02 PM, cocoa-dev-requ...@lists.apple.com wrote:
I sent this out last week and go no replies. Please excuse me for
sending it out again but I want to try one more time in case someone
has an answer.
I've been spending some time searching and thinking about how I can
Hi,
I have a cocoa app that uses a library which uses CFSockets. Those sockets run
loop sources are added to all known run loop modes ( common, default, event
tracking and modal ). I would expect that the socket callbacks would fire
during menu tracking but they dont. Is this a know issues, by
Hi, I have a layer where I want to animate a point, testPoint. For the moment,
I want to animate the y value of the point. I have testPoint as a property of
the layer. I want to get it to redisplay (and preferably also call the
setTestPoint) on every frame of the animation, so I implement:
+
On Sep 20, 2010, at 3:42 PM, Kenneth Baxter wrote:
To see the changes as they are made, in addition to the normal synthesize of
the testPoint, I have implemented the setter as follows:
There's your problem. Your not supposed to @synthesize these properties. Unless
you let Core Animation
Brilliant! Works now, thanks David.
Is there somewhere I can find out more about this? It is not mentioned in the
Core Animation Programming Guide (2010-08-12), and I have got two e-books on
core animation, and it is not mentioned in either of them.
Thanks
Ken
On 21 Sep, 2010,at 09:07 AM,
I believe this is talked about in one of the WWDC2010 Core Animation in
Practice sessions. Lots of good information in both, so I highly recommend
watching.
On Sep 20, 2010, at 4:24 PM, Kenneth Baxter wrote:
Brilliant! Works now, thanks David.
Is there somewhere I can find out more about
The key equivalent will not work for a toolbar item, menu form
representation.
The relevant code is
NSToolbarItem *item = [[NSToolbarItem alloc]
initWithItemIdentifier:identifier];
[item setLabel:label];
[item setPaletteLabel:paletteLabel];
[item setToolTip:toolTip];
In applescript I was able to do this:
*set* TID *to* AppleScript's text item delimiters
*set* AppleScript's text item delimiters *to* space
*set* theString *to* *text** items* *of* theString
*set* AppleScript's text item delimiters *to* %20
*set* theString *to* theString *as* *string*
*set*
Thanks Laurent.
I followed the DO instructions here:
http://www.informit.com/articles/article.aspx?p=1438422seqNum=3 but can't seem
to get a connection to the server from my client app.
Here's how I'm setting up the listener connection for the server
server = [NSConnection new];
[server
For those on the xcode mailing list I am not spamming or anything but on one of
these lists xcode or cocoa, someone posted a link with an example of getting
data from a php web page into objective-c
The responses I got on the xcode list while useful is not what I am looking
for. What I am
On 21/09/2010, at 8:34 AM, Evan Coleman wrote:
In applescript I was able to do this:
*set* TID *to* AppleScript's text item delimiters
*set* AppleScript's text item delimiters *to* space
*set* theString *to* *text** items* *of* theString
*set* AppleScript's text item delimiters *to*
On Sep 20, 2010, at 4:14 AM, Ken Tozier wrote:
server: (** NSConnection 0x114720 receivePort NSMachPort: 0x114850 sendPort
NSMachPort: 0x114850 refCount 1 **)
Ultimately, the client and server will need to work on different machines on
a network, thus the call to [NSSocketPortNameServer
48 matches
Mail list logo