On 19 Jan 2010, at 23:06, Jens Alfke wrote:
>
> On Jan 19, 2010, at 10:46 AM, Kirk Kerekes wrote:
>
>> NSDictionary will use almost any object as a key:
>>
>> From the docs:
>> "In general, a key can be any object (provided that it conforms to the
>> NSCopying protocol...)"
>>
>> -- and if i
Am 20.01.2010 um 11:34 schrieb Jeremy Pereira:
On 19 Jan 2010, at 23:06, Jens Alfke wrote:
On Jan 19, 2010, at 10:46 AM, Kirk Kerekes wrote:
NSDictionary will use almost any object as a key:
From the docs:
"In general, a key can be any object (provided that it conforms to
the NSCopying
On Jan 20, 2010, at 5:22 AM, Jens Miltner wrote:
> Am 20.01.2010 um 11:34 schrieb Jeremy Pereira:
>
>> On 19 Jan 2010, at 23:06, Jens Alfke wrote:
>>
>>> On Jan 19, 2010, at 10:46 AM, Kirk Kerekes wrote:
>>>
NSDictionary will use almost any object as a key:
From the docs:
"
Hi all,
I have an array controller that is feeding a NSTableView on a window. Also on
the window are a few text fields showing the contents of the selected row
(shows more than table). One of the fields is an NSTextView.
I am having a problem with fonts in the text view (google searches show
Hi,
I am using NSBorderless window style mask for window to set in full screen
mode. I am unable to recieve the mouse moved event on borderless window.
If I set the window style mask to titled I am able to recieve mouse moved
events.
I have set in awake from nib
[window setAcceptsMouseMove
This is most likely a very basic question, but I seem to be stumped just the
same.
I have an application nib (MainMenu) set up such that it instantiates the
NSApplication delegate and the application's main window.
The application delegate class has a property "player". The player is an
instan
Hello,
Could anyone tell me how I can tell if push notifications are turned on or off
on a device?
I only need to retrieve the current state of Notifications on the device, I
don't need to alter the state (I very much doubt that you could even if you
wanted to.)
Regards
Mick__
On Jan 20, 2010, at 5:27 AM, Grant Christensen wrote:
> I have an array controller that is feeding a NSTableView on a window. Also
> on the window are a few text fields showing the contents of the selected row
> (shows more than table). One of the fields is an NSTextView.
What property of th
[[UIApplication sharedApplication] enabledRemoteNotificationTypes] !=
UIRemoteNotificationTypeNone
On Jan 20, 2010, at 8:36 AM, Mick Walker wrote:
> Hello,
>
> Could anyone tell me how I can tell if push notifications are turned on or
> off on a device?
>
> I only need to retrieve the current
Thanks for your reply Alex.
Is there any way I can show the standard "XX Would like to send you Push
Notifications" alert dialog?
Regards
Mick
On 20 Jan 2010, at 16:03, Alex Kac wrote:
> [[UIApplication sharedApplication] enabledRemoteNotificationTypes] !=
> UIRemoteNotificationTypeNone
When you register for notifications that dialog comes up. Once the user has
said yes to it, it won't come up again.
On Jan 20, 2010, at 11:14 AM, Mick Walker wrote:
> Thanks for your reply Alex.
>
> Is there any way I can show the standard "XX Would like to send you Push
> Notifications" a
I need some folks experienced with cocoa and socket programming to weigh in for
me on some design problems I've been having. I'm designing an application that
acts as a client in a client-server model. The client communicates with the
server over the network by issuing a request and then recei
Okay, let me rephrase my question...
If I get a pointer to the NSArrayController and then call
[myArrayController setContent:gameList], then should the array
controller "just work"?
In other words, if the game descriptions do not appear in my NSPopUp,
then the problem just about has to be in
On Jan 18, 2010, at 4:55 PM, Ken Thomases wrote:
> On Jan 18, 2010, at 11:01 AM, Jeffrey Oleander wrote:
>
>> http://developer.apple.com/mac/library/documentation/Cocoa/Conceptual/Collections/Articles/Sets.html
>>
>> "Set Fundamentals: Note that if mutable objects are stored in a set, either
>
Recently I had the same issue you were having, sort of. And I came up with a
solution I really liked.
When I was playing with Distributed Objects, I fell in love with the
abstract simplicity. However, it blocks and that's bad. It's even worse when
the server stops responding, because you could pot
Oops, correction: the downside is that all arguments and return values need
to conform to NSCoder protocol. So, it's even more strict than I described
earlier. But it's still cool :)
-Steven
On Wed, Jan 20, 2010 at 12:40 PM, Steven Degutis
wrote:
> Recently I had the same issue you were having,
Hi All,
I use NSPrintPanel's "addAccessoryController:" method to add an accessory view.
It is used to manipulate some app-sepcific variables inside NSPrintInfo's
"printSettings".
Most everything works fine, changing the values changes the preview, they are
stored in Presets etc.
The one thing
For your original question, I think the issue is how "it" gets handed the list
of games and how "it" makes the array available with -gameList. (As you can
guess, I'm not sure what "it" refers to in your explanation.)
The bindings are re-established from the NIB during NIB loading. If you change
On Tue, Jan 19, 2010 at 1:16 PM, Jens Alfke wrote:
>
> On Jan 19, 2010, at 6:10 AM, Per Bull Holmen wrote:
>
>> I have made one class called GameController, which is overridden by
>> subclasses to control one specific type of game (PS: I will soon rename the
>> class "Controller" to "MainControlle
On Jan 20, 2010, at 11:39 AM, Carter R. Harrison wrote:
> I need some folks experienced with cocoa and socket programming to weigh in
> for me on some design problems I've been having. I'm designing an
> application that acts as a client in a client-server model. The client
> communicates wit
Greetings all,
I am experiencing a strange problem with the handling of uncaught exceptions
which I'm hoping someone can shed some light on.
This document:
http://developer.apple.com/mac/library/DOCUMENTATION/Cocoa/Conceptual/Exceptions/Tasks/ControllingAppResponse.html#//apple_ref/doc/uid/2000
On Jan 20, 2010, at 1:40 PM, Steven Degutis wrote:
> Recently I had the same issue you were having, sort of. And I came up with a
> solution I really liked.
>
> When I was playing with Distributed Objects, I fell in love with the abstract
> simplicity. However, it blocks and that's bad. It's e
On Jan 20, 2010, at 2:23 PM, Ken Thomases wrote:
> On Jan 20, 2010, at 11:39 AM, Carter R. Harrison wrote:
>
>> I need some folks experienced with cocoa and socket programming to weigh in
>> for me on some design problems I've been having. I'm designing an
>> application that acts as a client
By the way, supporting 10.5 isn't necessarily a problem for using Blocks.
PLBlocks is a viable plugin for Xcode on 10.5 that allows you to use blocks.
I can attest that it is pretty stable and I would use it in production apps
if I had to use 10.5 and needed blocks for something like this.
-Steven
On Jan 20, 2010, at 1:27 PM, Paul Sanders wrote:
> I am experiencing a strange problem with the handling of uncaught exceptions
> which I'm hoping someone can shed some light on.
>
> This document:
>
> http://developer.apple.com/mac/library/DOCUMENTATION/Cocoa/Conceptual/Exceptions/Tasks/Contro
On Jan 20, 2010, at 1:42 PM, Carter R. Harrison wrote:
> On Jan 20, 2010, at 2:23 PM, Ken Thomases wrote:
>
>> If you're using lots of CPU time, then you're not blocking, you're spinning.
>> When a thread is blocked, it does nothing and consumes no CPU time.
>>
>> Now, blocking is bad in the m
Also, I still recommend using AsyncSocket instead of NSStream APIs as
AsyncSocket will make your life much simpler at pretty much no cost.
-Steven
On Wed, Jan 20, 2010 at 11:39 AM, Carter R. Harrison wrote:
> I need some folks experienced with cocoa and socket programming to weigh in
> for me o
I am using the 'swipe to delete' functionality of the UITableView.
The problem is I am using a customised UITableViewCell which is created on a
per item basis in
- (UITableViewCell *)tableView:(UITableView *)aTableView
cellForRowAtIndexPath:(NSIndexPath *)indexPath
I need to alter the position
I may not have fully grasped your problem but you seem to say that
getting 'pieces' of the reply generates a lot of problems for you.
Couldn't you have a socket that buffers the replies and that sends the
whole aggregated messages to the rest of the app when done ?
You could have a special 'mes
FWIW, that's exactly what AsyncSocket does, using delegate callbacks (pretty
typical Cocoa pattern). This is one reason why I suggested it.
On Wed, Jan 20, 2010 at 3:06 PM, nicolas berloquin wrote:
> I may not have fully grasped your problem but you seem to say that getting
> 'pieces' of the repl
This is a genuine question/remark that pops up. No check is done on
what selector or object is returned or is it ?
If this is done on a public service (web server or other), couldn't
code injection be too easilly done that way ? (easy hacking, wilfull
crash etc) ?
Le 20 janv. 2010 à 19:47,
In my implementation of this solution, it is a slight danger of code
injection, but only in the sense that *existing methods can be called with
bunk data*. Methods that are not implemented by the protocol (and thus
destination) are ignored when received over the network. However, this
connection be
The only other danger of code injection with this solution (that I can think
of!) lies in taking advantage of the requirement of all arguments needing to
conform to NSCoder. Malicious data from a third party may disguise itself as
an NSData in such a way as to cause some buffer overflow or somethin
Carter R. Harrison wrote:
> The second way is to send a request and then let the NSInputStream
call a
> delegate method when the response data is available. The response
data is
> then pushed up through my protocol stack and finally up to the
higher level
> application code. The benefit t
On Jan 20, 2010, at 06:06, Gwynne Raskind wrote:
> I created an NSObjectController at the top level of the nib, and connected
> its "content" outlet to the application delegate. I then created a second
> NSObjectController, and bound its "contentObject" binding to
> "selection.player" on the fi
On Jan 20, 2010, at 05:33, Poonam Virupaxi Shigihalli wrote:
> I am using NSBorderless window style mask for window to set in full screen
> mode. I am unable to recieve the mouse moved event on borderless window.
> If I set the window style mask to titled I am able to recieve mouse moved
> even
On Jan 20, 2010, at 5:00 PM, Quincey Morris wrote:
>> It didn't work. The UI did not update with the values in the Info object for
>> the given Track in the Player. I tried a couple dozen things, and finally
>> found that the UI updated correctly when I generated a fake KVO notification
>> for t
On Wed, Jan 20, 2010 at 2:37 PM, Gwynne Raskind wrote:
> As usual, the blindingly obvious proves to be the problem. I had ensured
> perfect KVC/KVO compliance, and I was using the compliant accessors
> everywhere except for one place: the delegate's -awakeFromNib method where I
> create the Pla
On Jan 20, 2010, at 14:46, Kyle Sluder wrote:
> On Wed, Jan 20, 2010 at 2:37 PM, Gwynne Raskind
> wrote:
>> As usual, the blindingly obvious proves to be the problem. I had ensured
>> perfect KVC/KVO compliance, and I was using the compliant accessors
>> everywhere except for one place: the de
The DTD can be external, but you have to call setName: on it so that it is
coordinated with the root of your XML document. For example, suppose your
xml goes like this (ripped off the Internet, silly example):
Tove
Jani
Reminder
Don't forget me this weekend!
And the dtd goes like this:
Hello, all ...
Is it possible to specify (and hence, re-use) a persistent connection with
NSURLConnection? I want to issue new GET requests without having to
re-establish the connection to the server. If so, would anyone point me at an
example?
Regards,
John
What makes you think this isn't happening?
On 21 Jan 2010, at 00:07, John Michael Zorko wrote:
>
> Hello, all ...
>
> Is it possible to specify (and hence, re-use) a persistent connection with
> NSURLConnection? I want to issue new GET requests without having to
> re-establish the connection
John Michael Zorko wrote:
Hello, all ...
Is it possible to specify (and hence, re-use) a persistent connection with
NSURLConnection? I want to issue new GET requests without having to
re-establish the connection to the server. If so, would anyone point me at an
example?
Regards,
John
Is
On Jan 20, 2010, at 4:42 PM, Roland King wrote:
> Is there a reason you think NSRULConnection doesn't do that for you
> automatically? I think it does.
It does, although of course only if the server supports it. And there's a
maximum number of connections it'll keep open at a time.
—Jens_
On Jan 20, 2010, at 6:05 PM, Quincey Morris wrote:
>>> (Though it vaguely annoys me that I have to add a spurious
>>> retain/autorelease to the Player object.)
>> You don't technically have to. You could do:
>>
>> [self willChangeValueForKey:@"player"];
>> player = [[Player alloc] init];
>> [self
I have a couple of questions about the practices I'm using for
bindings in my app.
1. Doing work in the setter:
Something I do alot when making models & custom views. For example, I
might have a layer subclass that exposes a binding called
"concentration." I @synthesize the property, but I
The post was rejected, not for content, but for size.
In a nutshell, images aren’t really appropriate for a mailing list that reaches
thousands of people.
In the future everyone should just post the picture someplace, and then include
a link to it.
thanks
scott
On Jan 18, 2010, at 10:17 PM,
I have a custom window (NSBorderlessWindowMask) that requires using the
standard close/minimize/zoom buttons.
NSWindow's standardWindowButton:forStyleMask: method works great for creating
these buttons and adding to my custom (frame) view. However, the mouse over
effect does not work without us
Hi All,
I've dug around in the archives and found several threads addressing this
question, but the solutions don't seem to work.
NB: all binding was done in Interface Builder
I have an NSOutlineView with its only column bound at
treeController.arrangedObjects.name to an NSTreeController that
On Jan 20, 2010, at 9:43 AM, Kevin Wojniak wrote:
> NSWindow's standardWindowButton:forStyleMask: method works great for creating
> these buttons and adding to my custom (frame) view. However, the mouse over
> effect does not work without using undocumented methods. Mainly, overriding
> _mouse
Folks;
I've found through field testing that some of my customers are keeping several
copies of my application on their computer.
At various points in the usage, it is possible to launch the application using
AppleScript as well as by invocations of -launchAppWithBundleIdentifier:
However, whe
I’m assuming Snow Leopard
It sounds like they’re marked as @required in the header, but
@optional
/* Required methods
*/
- (id)outlineView:(NSOutlineView *)outlineView child:(NSInteger)index
ofItem:(id)item;
- (BOOL)outlineView:(NSOutlineView *)outlineView isItemExpandable:(id)item;
- (NSInteg
I have put a MyWebView (subclass of UIWebView) into my app.
MyWebView.m only has:
- (void)copy:(id)sender
{
NSLog(@"%s %@",__FUNCTION__, sender);
[ super copy: sender ];
}
The problem: this never gets called.
What I am trying to accomplish:
When the uses presses a link (which in
On Jan 20, 2010, at 5:05 PM, Quincey Morris wrote:
> On Jan 20, 2010, at 05:33, Poonam Virupaxi Shigihalli wrote:
>
>> I am using NSBorderless window style mask for window to set in full screen
>> mode. I am unable to recieve the mouse moved event on borderless window.
>> If I set the window sty
Thanks for your help!
I am indeed working with Snow Leopard.
Here are my bindings & configuration:
— NSTreeController, IB Name "Collections"
Mode: Entity
Entity Name: Collection
Children Key Path: children [a relationship on the Collection managed object]
Prepares Content: YES
Editable: YES
Fet
Hello,
For the past few years we've been running a Core Data SQLite
application on 5 machines, all accessing the database from a
Synology network drive via afp. However, after upgrading to
10.6.2, only one machine can access the database at a time. Any
number of machines still running 10.6.
56 matches
Mail list logo