Duh, Silly me. For some reason I thought +class returned some opaque
struct
thanks,
Graham
On 18 Jul 2008, at 4:27 pm, Kyle Sluder wrote:
On Fri, Jul 18, 2008 at 1:46 AM, Graham Cox <[EMAIL PROTECTED]>
wrote:
Can I use NSInvocation for a class method? I can't really see what
to use
for
On Fri, Jul 18, 2008 at 1:46 AM, Graham Cox <[EMAIL PROTECTED]> wrote:
> Can I use NSInvocation for a class method? I can't really see what to use
> for setTarget: as there isn't an actual object.
Erm? Just send messages to the Class object. Class objects return
self in response to +class.
--Ky
Hello,
I want to add group and members to group in address book.
I have done the following things.
ABAddressBook*book = [ABAddressBook SharedAddressBook];
ABPerson *person;
ABGroup *group = [[[ABGroup alloc] init] autorelease];
[group setValue:@"friend" forProperty:kABGroupNameProperty];
person = [
Can I use NSInvocation for a class method? I can't really see what to
use for setTarget: as there isn't an actual object.
Or there might be a better way to do what I want to do...
I'm trying to set up a simple scheme that maps file types to a method
that can interpret and decode that file ty
On Thu, Jul 17, 2008 at 8:35 PM, Ken Thomases <[EMAIL PROTECTED]> wrote:
> -[NSApplication setApplicationIconImage:] to set the dock tile.
Also take a look at NSDockTile, which is Leopard-only. It doesn't
allow you to badge your icon with an image, but it does allow you to
badge it with text. Th
On Thu, Jul 17, 2008 at 5:40 PM, Shawn Erickson <[EMAIL PROTECTED]> wrote:
> Load it with NSPropertyListSerialization then implement an
> NSTableDataSource or bind the table to an NSArrayController that uses
> the array you get from NSPropertyListSerialization.
That really is about as straightforw
On Thu, Jul 17, 2008 at 12:42 PM, Trygve Inda <[EMAIL PROTECTED]> wrote:
> Can a single class have an IBOutlet that goes two different (though
> functionally identical) places?
Yes, if what you're asking is "can I load a nib once with one object
as File's Owner and then again with a different obje
On Thu, Jul 17, 2008 at 7:52 PM, Ken Thomases <[EMAIL PROTECTED]> wrote:
>> How can I build one class to handle both???
>
> You sound very vexed by this question, but the answer seems self-evident to
> me. You just do. It's totally up to you what your classes do and how you
> use them. Nobody's
Well, as a reply to my own message . I seem to have gotten it to work
very nicely !
I recreated a fresh project and let my NSArrayController instance
create and manage the storage for me. In addition to possible
misconfiguration, It seems I was caught by the fact that
NSArrayController do
Well, you seem to be happy so far be it from me to spoil your mood...
But this makes very little sense to me.
What "delegate chain"? Do you mean responder chain? The responder
chain (if that *is* what you're referring to) is not an example of the
delegate pattern, it's an example of the "cha
The solutions to the challenges aren't on there, only the solutions to
the code you write in the chapters.
Eric... not sure what you're stuck with, care to be more specific?
-David
On Jul 17, 2008, at 4:41 PM, Alex Heinz wrote:
Hi Eric,
I'm also just starting out with Cocoa on Hillegass' b
I have a fairly complex NSPredicate which works correctly, but I am
trying to compound it with with a subpredicate that contains a logical
NOT. I have tried using many combinations of the predicate syntax, but
I can't seem to get it working. What I am trying to do it exclude
files from bein
Before I spend a lot of time attempting the following I would
appreciate any advice based on your experience:
I've got a drawing-like application where I'd like the user to be able
to rotate individual elements of the drawing. When the mouse is
hovering over an element I draw a manipulatio
I'm actually using UKKQueue in the project (it's a great utility - thanks a
lot!).
In some small tests I have seen that other apps break when moved while opened
(testing with TextEdit), so perhaps I should just assume it won't move. I guess
this is a moot issue then.
On Thursday, July 17, 200
On Jul 17, 2008, at 7:51 PM, Paul Denlinger wrote:
I'm having trouble with my first Cocoa lesson which is at
http://www.cocoadevcentral.com/d/learn_cocoa/
Everything works fine until I open up Interface Builder and drag
NSTextView
over to the Application window. When I try to fix the size of t
On Jul 17, 2008, at 1:26 PM, Omar Qazi wrote:
Sure. Then just update it every time the Application starts. Or do
something like
// I need to access that one file
if (![[NSFileManager defaultFileManager]fileExistsAtPath:savedPath]) {
newPath = [[NSBundle mainBundle]pathForResource:@"Whatever"
I'm having trouble with my first Cocoa lesson which is at
http://www.cocoadevcentral.com/d/learn_cocoa/
Everything works fine until I open up Interface Builder and drag NSTextView
over to the Application window. When I try to fix the size of the window, no
matter how many times I click on NSTextVie
On Jul 17, 2008, at 7:27 PM, Diop Mercer wrote:
Hi, can anyone point me to documentation that explains how to change
the dock icon of a running application?
+[NSImage imageNamed:] to load the image.
-[NSApplication setApplicationIconImage:] to set the dock tile.
Cheers,
Ken
_
Hi, can anyone point me to documentation that explains how to change
the dock icon of a running application? I have created a few .icns
files to indicate certain states of the application, for example the
normal icon, and then the same icon with a padlock on it. When the
lock button is pressed in
On Jul 17, 2008, at 11:42 AM, Trygve Inda wrote:
I am creating a System Pref Pane that has one window for each physical
monitor, very similar to the Displays prefpane. Like the Displays
prefpane,
on the Main monitor there will be the System Pref window with 4 tabs
(A B C
D), but on other mo
On Thu, Jul 17, 2008 at 5:35 PM, j o a r <[EMAIL PROTECTED]> wrote:
>
> On Jul 17, 2008, at 2:24 PM, Nick Zitzmann wrote:
>
>>> How on earth to I communicate with an object that has been instantiated
>>> by Interface Builder???
>>
>> Declare an IBOutlet pointer connecting an instantiated class to t
Hi Eric,
I'm also just starting out with Cocoa on Hillegass' book, and I found
it helpful to know that solutions to all his challenges are available
on the website:
http://www.bignerdranch.com/products.shtml
Good luck!
Alex
On Jul 16, 2008, at 8:33 PM, Eric Lee wrote:
First of all, I'm' n
On 17.07.2008, at 23:13, Jean-Daniel Dupas wrote:
Correct me if I'm wrong, but kqueue will not work if you move a
folder that contains the applications (and not the app directly).
You're right, completely forgot about that.
Cheers,
-- Uli Kusterer
"The Witnesses of TeachText are everywhere.
El 17/07/2008, a las 18:13, Jonathan Dann escribió:
Hi Joan,
As Keary says, removing in -dealloc is probably not the best thing
to do as there are a few cases that this can bite you, like if your
window controller retains the view controllers, and -dealloc is
called on the window control
On Thu, Jul 17, 2008 at 2:32 PM, Joeles Baker
<[EMAIL PROTECTED]> wrote:
> Hi,
>
> is there any straighforward way to create a listview from a xml plist
> source?
> (the plist contains one array, which contains several dictionaries. the
> dictionaries basically contain my listview columns).
Yes. L
On Jul 17, 2008, at 2:24 PM, Nick Zitzmann wrote:
How on earth to I communicate with an object that has been
instantiated by Interface Builder???
Declare an IBOutlet pointer connecting an instantiated class to the
instantiated object. Then read the instantiated class's header file
into I
oops. I accidentally replied directly to the excellent chap who helped
me out...
Just so nobody wastes any time answering this again --
NSDocumentController did the trick!
J.
On 17-Jul-08, at 2:21 PM, Jeff C wrote:
NSDocumentController has what you're looking for.
Check out the routines
On Jul 17, 2008, at 5:24 PM, Nick Zitzmann wrote:
On Jul 17, 2008, at 3:14 PM, James Maxwell wrote:
Sorry folks, but there are things about IB that just don't make
sense to me.
How on earth to I communicate with an object that has been
instantiated by Interface Builder???
Declare an IBO
On Thu, Jul 17, 2008 at 2:14 PM, James Maxwell
<[EMAIL PROTECTED]> wrote:
> Sorry folks, but there are things about IB that just don't make sense to me.
>
> How on earth to I communicate with an object that has been instantiated by
> Interface Builder???
If you talking about an object instantiated
On Jul 17, 2008, at 3:14 PM, James Maxwell wrote:
Sorry folks, but there are things about IB that just don't make
sense to me.
How on earth to I communicate with an object that has been
instantiated by Interface Builder???
Declare an IBOutlet pointer connecting an instantiated class to
Le 17 juil. 08 à 23:13, Jean-Daniel Dupas a écrit :
Le 17 juil. 08 à 23:03, Uli Kusterer a écrit :
On 17.07.2008, at 12:50, Mitchell Livingston wrote:
I need to pass the location to a c library and reset the location
in this library when the application is moved, so I need a way to
know
Sorry folks, but there are things about IB that just don't make sense
to me.
How on earth to I communicate with an object that has been
instantiated by Interface Builder???
I have a document-based app, and an AppController instantiated in IB.
The AppController needs a reference to the doc
Le 17 juil. 08 à 23:03, Uli Kusterer a écrit :
On 17.07.2008, at 12:50, Mitchell Livingston wrote:
I need to pass the location to a c library and reset the location
in this library when the application is moved, so I need a way to
know when the app is moved.
How can I call it again if I d
Am 17.07.2008 um 22:33 schrieb Hamish Allan:
On Thu, Jul 17, 2008 at 8:49 PM, Philip Mötteli
<[EMAIL PROTECTED]> wrote:
I try to analyze objects, that have been serialized using keyed
encoding.
As long as there are only simple values, I have no problem. But the
members
of too-many IVars ar
On 7/17/08 12:01 PM, Jens Alfke said:
>> Interesting. What about NSKeyedArchiver? It has, for example,
>> encodeInt32:forKey: but no unsigned equivalent. What should one do if
>> one wants to encode a uint32? Are there sign extension dangers here?
>
>It shouldn't be a problem as long as you ca
On 17.07.2008, at 12:50, Mitchell Livingston wrote:
I need to pass the location to a c library and reset the location in
this library when the application is moved, so I need a way to know
when the app is moved.
How can I call it again if I don't know it moved? Waiting until it
fails is a
d
On Jul 17, 2008, at 4:50 PM, Eric Lee wrote:
Warning: 'NSScrollView' may not respond to '-reloadData' (Messages
without a matching method signature will be assumed to return 'id'
and accept '...' as arguments)
It's saying you are trying to send a reloadData message to an instance
of NSSc
From a quick glance, I'd say you've connected your tableview outlet
to the scrollview in Interface Builder, not the tableview. Tableviews
are contained within scrollviews. You can confirm by checking what
the outlet's connected to under the 'outlets' tab of the info panel in
IB.
-Bob Wa
> While I'm trying to reload data, there's always this warning the says:
>
> Warning: 'NSScrollView' may not respond to '-reloadData' (Messages without a
> matching method signature will be assumed to return 'id' and accept '...' as
> arguments)
It's most likely that you've dragged your connecti
I'm doing Challenge from Chapter 6 in the 3rd edition of the Cocoa
Programming for mac OS X book, and I've ran into some trouble.
While I'm trying to reload data, there's always this warning the says:
Warning: 'NSScrollView' may not respond to '-reloadData' (Messages
without a matching metho
So, you're trying to locate all things that look like a C identifier:
[A-Za-z_][A-Za-z0-9_]+?
How do you identify the too-many relationships? Is there a token for
it or is it something You see when you read the data?
Whatever tool serialized the data needs to interpret it to unserialize
it la
Am 17.07.2008 um 20:57 schrieb Andy Lee:
On Jul 17, 2008, at 2:34 PM, Philip Mötteli wrote:
I'm actually in a lucky position, because
1. The strings are not complicated at all.
When you say they are not complicated, do you mean they are
relatively short, or that there is some regularity to
On Jul 17, 2008, at 8:53 AM, Ivy Feraco <[EMAIL PROTECTED]> wrote:
There was a previous post back in April about a problem with binding
to the representedObject in NSViewController.
When instantiating the view controller, I set the represented object
to an NSArrayController.
vc = [[MyVi
I'm 99% certain I asked this question before, and got a few
suggestions, but I can't find it.
I have a Core Data model for most of my document's data, but there's a
whole mess of other stuff that needs to be stored (e.g., the color in
which certain types of lines are drawn, the view's posit
On 17 Jul '08, at 11:29 AM, Omar Qazi wrote:
Maybe you could fake the mouse even that would normally pop it open.
Actually, after some experimentation I figured out how to do it using
the accessibility API:
@interface NSComboBox (MYExpansionAPI)
@property (getter=isExpanded) BOOL expande
On 17 Jul '08, at 10:18 AM, Thomas Engelmeier wrote:
Thanks for confirming. I'll probably end up writing enhancement
requests to documentation so this behavior gets documented.
You can do that, but I really doubt the 10.4 documentation is still
being updated! I guess it could be added to t
On Jul 17, 2008, at 2:34 PM, Philip Mötteli wrote:
I'm actually in a lucky position, because
1. The strings are not complicated at all.
When you say they are not complicated, do you mean they are relatively
short, or that there is some regularity to them that might reduce the
problem from
On 17 Jul '08, at 10:45 AM, Andy Lee wrote:
I'd add a (BOOL)handleMyKeyDown: method in a category of NSObject,
and override keyDown: in NSApplication to traverse windows,
delegates (perhaps including control delegates), and descendant
views until something returns YES.
Well, if I'm going
Hi,
Thanks for all the answers.
Surely the following sequence of words would produce Word[1-9]{1,2}
instead of Word[0-9]{1,2} because there is no representative 0 in
the sample ?
"Word1"
"Word2"
"Word5"
"Word8"
"Word11"
"Word19"
"Word23"
"Word45"
"Word77"
how
will the computer know t
On Jul 17, 2008, at 9:26 AM, Jens Alfke wrote:
I have an NSComboBox, and I want to automatically pop open the list,
without the user having to click the button. But I can't find
anything in the API of either the control or the cell to do this.
Did I overlook something?
Maybe you could fa
Hello Jens,
On Jul 17, 2008, at 8:26 PM, Jens Alfke wrote:
I have an NSComboBox, and I want to automatically pop open the list,
without the user having to click the button. But I can't find
anything in the API of either the control or the cell to do this.
Did I overlook something?
I know
On Jul 17, 2008, at 3:50 AM, Mitchell Livingston wrote:
How can I call it again if I don't know it moved? Waiting until it
fails is a bit too late in the process. Sure, chances are the app
won't move, but why should it ever fail? Storing it in the library
folder is
On 7/17/08 9:55 AM, Jens Alfke said:
>> What are my best options to get around that? (Except of using the
>> next larger NSNumber variants to store unsigned values in order to
>> prevent unwanted sign expensions for unsigned values)?
>
>Either require 10.5, or use a larger size. The problem is tha
On Jul 16, 2008, at 8:15 PM, Ryan Chapman wrote:
Hopefully there is someone here who knows something about binary plist
files. When an iPhone's firmware is upgraded in iTunes, a framework
called
MobileSync creates a backup of the iPhone's data files. The backup is
stored in .mdbackup files
On Jul 17, 2008, at 8:52 AM, Louis Demers wrote:
A button bound to the "add" or the "insert" method of the
NSArrayController just does nothing.
Do you mean "bound" or "connected using target action"?
class toto
Please follow Cocoa naming conventions -- class names begin with
capital l
On 17-Jul-08, at 12:10 , Sean McBride wrote:
On 7/17/08 11:52 AM, Louis Demers said:
I've programmed for a while in Cocoa, with bindings... But for the
first time I need a NSTableView and I would like to use
NSArrayController with bindings to do as much work as possible and
with the m
On 17-Jul-08, at 12:31 , mmalc crawford wrote:
On Jul 17, 2008, at 8:52 AM, Louis Demers wrote:
A button bound to the "add" or the "insert" method of the
NSArrayController just does nothing.
Do you mean "bound" or "connected using target action"?
control dragged from my button to the n
On Jul 17, 2008, at 1:05 PM, John Love wrote:
... and the lights went on ... and I hear fireworks!
Andy said "I think of each of those bunches as categories of methods."
I'm glad it was good for you. :)
--Andy
___
Cocoa-dev mailing list (Cocoa-de
On Jul 17, 2008, at 5:50 AM, Mitchell Livingston wrote:
How can I call it again if I don't know it moved? Waiting until it
fails is a bit too late in the process. Sure, chances are the app
won't move, but why should it ever fail? Storing it in the library
folder is not a real good option.
On Jul 16, 2008, at 2:43 PM, Kyle Sluder wrote:
Except what happens if a field editor is key? Then the editor
swallows all keys, including Esc. Or if it doesn't do this by
default, Esc is one of the keys that it can swallow because NSTextView
uses it as the "autocomplete" hotkey.
Didn't this q
On Thu, Jul 17, 2008 at 10:16 AM, ahmed nabel <[EMAIL PROTECTED]> wrote:
>
> I want to use Interface Builder UI components to call Java methods (in their
> corresponding Java files). Is this possible? How?
>
> Please see my post on the Java mailing post:
>
> http://lists.apple.com/archives/java-de
On Thu, Jul 17, 2008 at 9:28 AM, Francisco Tolmasky <[EMAIL PROTECTED]> wrote:
> I've looked around the docs quite a bit and haven't been able to find an
> answer to this.
Why do you think you need to avoid using a simple nib? What you are
asking to do is not supported.
-Shawn
___
Francisco,
It is possible to "set the application delegate ... without subclassing
NSApplication or mucking around inside of main()." But I don't know an
approach that doesn't require using IB.
When I needed to do this, I used Mark Ericksen's very clear recipe from 2001:
Re: [NSApp setDel
I posted about this issue but so far only one response.
For the full details please see earlier in this thread.
This is a summary:
Initially the button has blank icons for both image and alternate image.
User clicks on button, action method is called, in that method a
different alternate image
Am 17.07.2008 um 18:55 schrieb Jens Alfke:
What are my best options to get around that? (Except of using the
next larger NSNumber variants to store unsigned values in order to
prevent unwanted sign expensions for unsigned values)?
Either require 10.5, or use a larger size. The problem is th
I want to use Interface Builder UI components to call Java methods (in their
corresponding Java files). Is this possible? How?
Please see my post on the Java mailing post:
http://lists.apple.com/archives/java-dev/2008/Jul/msg00135.html
Can anyone please refer to specific steps on how to do thi
On Thu, Jul 17, 2008 at 9:53 AM, Jens Alfke <[EMAIL PROTECTED]> wrote:
>
> On 17 Jul '08, at 6:13 AM, em wrote:
>
>> So, architecturally, for high speed transmission over a closed network
>> neighborhood of say 9 minis, isn't there something
>> like a "SuperSocket" that could co-ordinate these now
... and the lights went on ... and I hear fireworks!
Andy said "I think of each of those bunches as categories of methods."
YES!, not a category of an object, but a logically separate category of
methods belonging to the object. So,
@interface MyDocument (NSToolbarItemValidation)
adds the m
> Once you have a template image like that, it's easy to stretch it to fill
> the balloon bounds using NSDrawNinePartImage.
A great idea. Here's the best resource I've found on this method:
http://www.karlkraft.com/index.php/2007/11/14/nsdrawninepartimage/
--
I.S.
___
On 17 Jul '08, at 6:38 AM, Thomas Engelmeier wrote:
What are my best options to get around that? (Except of using the
next larger NSNumber variants to store unsigned values in order to
prevent unwanted sign expensions for unsigned values)?
Either require 10.5, or use a larger size. The pro
On 17 Jul '08, at 6:13 AM, em wrote:
So, architecturally, for high speed transmission over a closed
network neighborhood of say 9 minis, isn't there something
like a "SuperSocket" that could co-ordinate these now '3' streams of
info.
There's nothing "super" about it; just regular sockets.
On Jul 17, 2008, at 11:28 AM, Francisco Tolmasky wrote:
I've looked around the docs quite a bit and haven't been able to
find an answer to this. Basically, I'd like to know if it is at
all possible to set the application delegate without a nib, and
without subclassing NSApplication or muck
I touched on this before, but I think this is a better explanation of the
problem.
I am creating a System Pref Pane that has one window for each physical
monitor, very similar to the Displays prefpane. Like the Displays prefpane,
on the Main monitor there will be the System Pref window with 4 tabs
On 16 Jul '08, at 8:22 AM, chaitanya pandit wrote:
One idea would be to create an NSBezierPath with the shape of the
chat bubble, once u have it you can use the CTGradient calss's
[gradient fillBezierPath] method to fill it with an aqua look.
The CTGradient project is here:
http://blog.oof
On 16 Jul '08, at 2:53 PM, Matt Neuburg wrote:
Implement keyDown: in the NSWindowController?
keyDown: only gets sent to the key view, whether or not it handles
that keystroke. Since the method returns void, there's no way for
AppKit to tell whether a responder handled the keystroke or not
Hello Duncan,
On Jul 16, 2008, at 10:20 PM, Duncan Campbell wrote:
I'm writing an application that is designed to scan images of
people's eyes. Among other things, app needs to look at things like
the color , shape, amount of redness, size of pupil etc.
I'm looking for some pointers towards
Your question is a simple problem, actually, that hides a hard problem.
Creating a regex from a bunch of strings is simple, just take all the words
and OR them together, so in your example:
Word1 | Word2 | Word5 | Word8 | Word11 | Word19 | Word23 | Word45 | Word77
Unfortunately, there is no known
I've looked around the docs quite a bit and haven't been able to find
an answer to this. Basically, I'd like to know if it is at all
possible to set the application delegate without a nib, and without
subclassing NSApplication or mucking around inside of main(). Is
there something similar
On 7/17/08 11:53 AM, Ivy Feraco said:
>There was a previous post back in April about a problem with binding
>to the representedObject in NSViewController.
I missed that, but I am having problems binding via NSViewController's
representedObject too.
>When instantiating the view controller, I set
I have an NSComboBox, and I want to automatically pop open the list,
without the user having to click the button. But I can't find anything
in the API of either the control or the cell to do this. Did I
overlook something?
(I suspect there might be a sneaky way to do this using the
Access
It could also have been:
Word[1247]?[1235789]
or
Word[124578][13579]?
Conclusion:
Don't think a reliable solution for this can exist. It's just too few
information to detect the right pattern.
Even as a human being I'm actually not even 75% sure what's the right
pattern for th
Hi Joan,
As Keary says, removing in -dealloc is probably not the best thing to
do as there are a few cases that this can bite you, like if your
window controller retains the view controllers, and -dealloc is called
on the window controller, which would proceed to release its
collection of
On 7/17/08 11:52 AM, Louis Demers said:
> I've programmed for a while in Cocoa, with bindings... But for the
>first time I need a NSTableView and I would like to use
>NSArrayController with bindings to do as much work as possible and
>with the minimum amount of code. But I've had nothing but
hi,
I want to run an application such that it will pop-up for the admin user
name and password(authentication) when run by nonadmin (standard )login.
let me explain what i am doing:-
- (BOOL)Authenticate {
AuthorizationRights myRights;
AuthorizationItem myItems[1];
Authoriz
There was a previous post back in April about a problem with binding
to the representedObject in NSViewController.
When instantiating the view controller, I set the represented object
to an NSArrayController.
vc = [[MyViewController alloc] initWithNibName:@"newView" bundle:nil];
[vc setRepr
Hi,
I've programmed for a while in Cocoa, with bindings... But for the
first time I need a NSTableView and I would like to use
NSArrayController with bindings to do as much work as possible and
with the minimum amount of code. But I've had nothing but failure,
even after inspecting many e
On Jul 17, 2008, at 10:18 AM, Erik Buck wrote:
Anyway, I think this is an unsolvable problem, and I might start
with an attempted proof of its unsolvability rather than a solution.
It may be solvable for simple cases. For the example given, I'd
compose bi-grams out of the terms involved
7/17/08 8:59 AM, also sprach [EMAIL PROTECTED]:
> However, the way I am doing it makes me wonder where the best place
> should be for adding and removing the observers. What I am currently
> doing is adding the observers in the awakeFromNib methods of each
> viewController, and removing them in th
You ask an interesting computer science question (that's unrelated to Cocoa).
Surely the following sequence of words would produce Word[1-9]{1,2} instead
of Word[0-9]{1,2} because there is no representative 0 in the sample ?
"Word1"
"Word2"
"Word5"
"Word8"
"Word11"
"Word19"
"Word23"
"W
Le 17 juil. 08 à 16:48, Keary Suska a écrit :
7/15/08 8:48 AM, also sprach [EMAIL PROTECTED]:
NSMessagePort doesn't seem to post the
NSPortDidBecomeInvalidNotification notification when the remote port
dies. It doesn't seem to matter if the remote port is closed via the
invalidate method or b
Oop--forget about the accessor override bit. I forgot that to-many
relationships are represented with NSSets.
Sorry,
Keary Suska
Esoteritech, Inc.
"Demystifying technology for your home or business"
-- Forwarded Message
> From: Keary Suska <[EMAIL PROTECTED]>
> Date: Thu, 17 Jul 2008 08:56:2
I am coding a single window, multiview, app, and as what I think is a
recommended design pattern I only load the views controllers (and
therefore their views) from their nibs as they are required, and then
I retain them in the main window controller so they do not have to be
loaded again ea
On Jul 16, 2008, at 3:22 PM, Michael Hanna wrote:
I'm using observeValueForKeyPath:ofObject:change:context: to detect
when a change occurs in my data model. When a non-leaf node gets
added, the outline view draws the new item, but in an unexpanded
state. I try this code:
[m_rulesOutlineView
Yeah come to think of it I saw this behaviour when adopting the
mediator pattern in my app. In the NSPersistentDoc tutorial you can
create a Dept. object just using NSObjectController, then bind your
array contorller's contentSet binding to the object controller's
dept.employees keypath (o
7/16/08 6:37 PM, also sprach [EMAIL PROTECTED]:
> I have a couple entities related by a to-many relationship. Entity Foo
> can have 0..N of Entity Bar. I have a relationship defined on Foo
> named "bars". In my code, I build a comma-delimited string of Bars by
> iterating over the NSArray* returne
7/15/08 8:48 AM, also sprach [EMAIL PROTECTED]:
> NSMessagePort doesn't seem to post the
> NSPortDidBecomeInvalidNotification notification when the remote port
> dies. It doesn't seem to matter if the remote port is closed via the
> invalidate method or by killing the process. The only way I am se
You are not allowed to post to this mailing list, and your message has
been automatically rejected. If you think that your messages are
being rejected in error, contact the mailing list owner at
[EMAIL PROTECTED]
From: Louis Klaassen <[EMAIL PROTECTED]>
Date: 18 July 2008 12:43:35 AM
To: cocoa-
Hi,
Does anybody know of a library, that takes a bunch of strings and
produces a regex-string from them?
E. g:
"Word1"
"Word2"
"Word5"
"Word8"
"Word11"
"Word19"
"Word23"
"Word45"
"Word77"
should give "Word[0-9]{1,2}". Or I would even be more happy with
"Word[0-9]+".
I've heard of Grail+.
Why not just call it every time it starts up? I can't imagine the
overhead of the API call is very high.
Devon.
Mitchell Livingston wrote:
How can I call it again if I don't know it moved? Waiting until it fails is a
bit too late in the process. Sure, chances are the app won't move, but why
Hi,
I'm running into problems with [NSNumber numberWithUnsignedShort:
0x8000].
The following app returns the expected values when compiled against
the Leopard SDK.
Compiled against the 10.4 SDK, I get:
NSNumberTest[6058:813] 8000 (expected:8000) 8000 (expected:8000)
-32768 (expecte
1 - 100 of 114 matches
Mail list logo