Hi
I have a table with one column that displays an NSPopUpButtonCell. I
was able to bind the menu items into the cell and can select items in
the menu, but when I change a selection on one row's menu, the menu in
every other row in the table changes to the new selection.
Here's how I'm se
Hmmm. So there's no way to set this up just through bindings?
Also, in your snippet, where does "anIndex" come from?
On Nov 4, 2008, at 5:32 AM, Cathy Shive wrote:
On Nov 4, 2008, at 10:05 AM, Ken Tozier wrote:
What happens is that when I choose an item in one row'
On Nov 4, 2008, at 7:07 AM, Cathy Shive wrote:
As for whether or not it's possible to do this with bindings, I'm
not 100% sure...
When the table is first displayed, are the proper selections
displayed for each row?
Yes and no. The popups have all the correct choices in them but all
pag
I use pragma mark all the time and this seems to work fine
#pragma mark-
#pragma mark Drawing
#pragma mark-
Xcode does seem to hiccup once in awhile with pragma mark though.
Sometimes, for unknown reasons, a mark will completely disappear and I
have to manually cut and past them back in the
Success!
Here's the correct incantation
1. bind page controller to page list
[pageController bind: @"contentArray" toObject: inProject
withKeyPath: @"pages" options: nil];
2. bind popup controller to master page list
[popupController bind: @"contentArray" toObject: inProject
withKeyPath
Hi
I've been reading and re-reading the Apple master detail documentation
for two days now, googling, etc and can't to get the selection in an
NSPopUpButtonCell to work correctly. I've tried every permutation of
binding I could think up without success. What happens is that when I
choose
Hi
I'm trying to observe an NSArrayController's selectionIndex which,
according to the documentation here:
http://developer.apple.com/documentation/Cocoa/Reference/ApplicationKit/Classes/NSArrayController_Class/Reference/Reference.html#/
/apple_ref/occ/instm/NSArrayController/selectionIndex
Hi
I have a custom NSView subclass that contains, among other things, an
NSTableView and need to know when focus changes happen so I can
highlight the the view correctly. I tried setting up a KVO observer on
NSWindw's "firstResponder", but it appears that windows don't report
this change.
Hi
I've been trying off and on for a couple of days to run a script that
requires parameters. The first problem I found was that NSAppleScript
has a bug that wipes out QuarkXPress's event dictionary when loading
scripts containing Quark commands. Someone pointed me to the OSAScript
framew
Thanks for the reply. I just tried it, but no luck. Still getting a
"event not handled" error. The script runs fine from the Script editor
so all I can think of is that the subroutine option is broken in both
NSAppleScript and OSAScript. Is this a known bug in Apple's script
frameworks? I'v
Hi
I've been working with AppleEvents and discovering their internals by
setting the following in the terminal
> export AEDebugSends=1; export AEDebugReceives=1
What I'd like to be able to do is observe apple events exactly like
this tool but format them into an NSDictionary so they can be
Hi
I wrote a subclass of NSCharacterSet and at runtime, when I do
[MyClass class] it returns the superclass's class rather than the
class value. I suspect this is "normal" but was wondering if there is
a way to get my subclass's class rather than it's superclass.
__
On Nov 17, 2008, at 3:51 AM, Jean-Daniel Dupas wrote:
Le 17 nov. 08 à 08:06, Ken Tozier a écrit :
What do you mean by "this tool" ? export is used to set an
environment variable. I guess that system functions that send and
receive event just check if the env var is s
On Nov 19, 2008, at 8:52 AM, Jean-Daniel Dupas wrote:
The logging is performed by the application itself (I guess this is
done in AESendMessage or a lower level private function for send
events and in AEDecodeMessage or a lower level private function for
received event).
I guess the ea
@interface KOptionString : NSCharacterSet
{
}
@end
KOptionString *whiteTest = [KOptionString whitespaceCharacterSet],
*hexTest = [KOptionString characterSetWithCharactersInString:
@"0123456789abcdefABCDEFxX"];
NSLog(@"whiteTest %@", [whiteTest class]);
NSLog(@"hexTest %@", [hexTe
as Jean-Daniel already pointed out.
atze
Am 20.11.2008 um 11:37 schrieb Ken Tozier:
@interface KOptionString : NSCharacterSet
{
}
@end
KOptionString *whiteTest = [KOptionString whitespaceCharacterSet],
*hexTest = [KOptionString characterSetWithCharactersInString:
@&
On Nov 20, 2008, at 8:43 AM, Ken Thomases wrote:
You keep mentioning [MyClass class], except that's not what you're
calling. You're invoking -class (the instance method, rather than
the class method, by the way) on some object. That object is not an
instance of MyClass or, in the case of
Just out of curiosity, why do you need to send such common math
operations to a soap request? Wouldn't it be easier to do simple stuff
like calculations in your Soap class and only make requests for the
unique services the endpoint provides?
On Nov 20, 2008, at 12:27 AM, Austin Ziegler wro
Hi
I'm working my way through the "Distributed Objects" documentation and
am confused about when to use NSConnection, NSInputStream,
NSOutputStream etc. The PictureBrowser example project doesn't even
seem to use NSConnection and does its thing just fine. Reading the
NSConnection docs, I
Something like this should get you in the ballpark
MyController : NSObject
{
IBOutlet NSTextField*imagePathField;
IBOutlet NSImageView*imageView;
}
// register controller to receive messages from the text field
- (void) awakeFromNib
{
[imagePathField setDe
other processes that advertise their presence on the network.
Hope this helps!
John
Positive Spin Media
http://www.positivespinmedia.com
On Dec 3, 2008, at 8:22 PM, Ken Tozier wrote:
Hi
I'm working my way through the "Distributed Objects" documentation
and am confused about wh
Thanks Mike
Still trying to get my head around this stuff, but here's how I
interpret what I need to do...
Create a connection to MySQL
#define DEFAULT_MYSQL_PORT_NUMBER 3306
socket = [[NSSocketPort alloc] initRemoteWithTCPPort:
DEFAUT_MYSQL_PORT_NUMBER host: @"some host"];
Also, is dragging the delegate from the text field to the File's
Owner the same as the awake from NIB call, or do I need to add the
awakFromNIB as well?
Thanks!
Peace, Love, and Light,
/s/ Jon C. Munson II
Quoting Ken Tozier <[EMAIL PROTECTED]>:
Something like this
OK. After reading the docs on NSStream, here's what I came up with.
- (BOOL) openStreamsWithMode:(MySQLConnectMode) inMode
{
[NSStream getStreamsToHost: host port: port inputStream: &inStream
outputStream: &outStream];
if ((inStream != nil) && (outStream != nil))
{
Hi
I'm writing my own socket class using a bunch of BSD functions and am
a little unclear on exactly what I should be doing to insure
everything is cleaned up if any of the low level functions fail. If I
return nil from my init, does the system call my dealloc method to
allow proper clean
It's a matter of preference I guess. In practice, I can't think of any
reason to connect to a server unless you intend to talk to it, so I
just wrapped up all the ugliness into a nice simple interface.
Creating one of my KClientSockets, connects to the host and retrieves
any handshake data
On Dec 6, 2008, at 6:45 PM, Andrew Farmer wrote:
This is incorrect. A "connection refused" error in this context
means that you're either trying to connect to a host/port which is
not configured to accept a connection, or the host is behind a
firewall which blocks incoming connections. In
Hi
I would like to customize an NSToolbar to make it's tools wrap rather
than overflow, but I can't see any way to control the toolbar height.
Is there some way to do this? I've had a lot of practice writing
wrapping views but NSToolbar seems to be locked up pretty tight as far
as how it
Have you looked at OSAKit? It has methods for executing subroutines of
scripts without having to do that "initWithSource" hack.
You can find the header files here: "/System/Library/Frameworks/
OSAKit.framework/Versions/A/Headers/"
A couple of caveats about using it though. Subroutine names h
Hi
I'm building up some complex custom views from other custom views etc,
etc and am able to load nibs programatically and get the list of top
level objects, but it just seems awkward to have to iterate over the
list of items and do class tests to determine what I'm being handed.
Is there
Hi
I have a custom view inside a scroll view and all works nicely except
when the custom view's contents exceeds the depth of the scroll view.
The scroll bars don't appear. I created the scroll view in IB from a
standard widget and did nothing more than set the class of default
content vi
I think my issue is slightly different. The scroll bars never appear,
no matter how much overflow there might be. I generally don't have a
problem using table views as they seem to have some built-in mechanism
for notifying the scroll view that they are deeper than it is. I'm
trying to make
Thanks Quincey this helped. I'm getting scroll bars now.
The new issue though is that when I set the size of the content view
(document view?) the scroller's size changes to the new size of the
content. I've checked and rechecked to make sure all the autosize
parts are set up in IB correctl
Hi
I've been struggling with a set of complex views for my palette user
interface and have literally been fighting with the same stupid issues
off and on for almost a year. I've never, in my 15 years of
programming come up against a problem as difficult as making a user
interface using Co
On Apr 29, 2009, at 11:48 PM, Michael Ash wrote:
Seems like you're adding a lot of complication for what is essentially
a continually running operation. Instead of that, why not do this?
1. Spawn a thread.
2. Sample files.
3. Sleep.
4. Goto 2.
Or, in code:
- (void)threadMethod {
while(1)
NSClassFromString does what you want
http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_Functions/Reference/reference.html#/
/apple_ref/c/func/NSClassFromString
On Apr 30, 2009, at 3:50 PM, Darren Minifie wrote:
Hi everyone.
I have the situation wh
Hi
I'm trying to write a general purpose console-like view and have most
of the parts working except the convenience functions for adding
attributed strings to an NSTextView subclass. Basically, what I want
is to have a couple of functions that can be used like NSLog, but am
finding that
On May 1, 2009, at 12:59 AM, Michael Ash wrote:
"It locks up" is not a very useful description. Use the debugger and
find out *where* it locks up.
I bracket calls to my KCLog function like so
NSLog(@"about to call KCLog");
KCLog(@"testing 1, 2, 3");
NSLog(@"KCLog exe OK");
And what I see in
On May 1, 2009, at 1:35 AM, Stephen J. Butler wrote:
So what you can do (and there are other ways too) is create a method
called appendTimeAndMessage:(NSArray*)someArguments and call that with
performSelectorOnMainThread and ilk.
Thanks Stephen. That did the trick. Also cleared up a bit of my
Hi
I wrote a custom view that contains several other views and am having
problems when applying an affine transform to the main view. The main
view is a page and the two subviews are a crop view that displays page
margins and a column view that displays the page columns. I've checked
to m
:
On 22/05/2009, at 12:52 PM, Ken Tozier wrote:
- (void) drawRect:(NSRect) inRect
{
NSAffineTransform *transform = [self transform];
[transform concat];
[[NSColor whiteColor] set];
NSRectFillUsingOperation([self frame
Hi
I'm getting a warning when calling NSEvent's eventWithEventRef
NSEvent *event = [NSEvent eventWithEventRef: ref];
I include Appkit and Carbon in the file where this warning appears
#import
#import
And the documentation doesn't say this is an obsolete method
http://developer.apple.com/d
API. It is
unavailable on Mac OS X 10.4 Tiger.
If you want to write from Leopard only, set the base SDK of your
target to the 10.5 SDK.
Kiel
On 26/05/2009, at 2:52 PM, Ken Tozier wrote:
Hi
I'm getting a warning when calling NSEvent's eventWithEventRef
NSEvent *event = [NSEvent ev
101 - 143 of 143 matches
Mail list logo