Re: [ANN] CoreParse

2011-06-06 Thread Thomas Davie
On 5 Jun 2011, at 15:35, Stephane Sudre wrote: > Hi, > > your post probably misses the following stuff: > > - a URL > - the license > - whether it's written in Obj-C 2.0 (which I personally hope it's not) or 1.0. That'll teach me for posting this just as I was going out the door! - URL - htt

Can NSNotificationCenter Memorize Old Events?

2011-06-06 Thread Bing Li
Dear all, I got a weird phenomenon when using NSNotificationCenter. At the server end, when a remote message is received, the following code is called to notify relevant module to respond. When a client initializes a TCP connection with the server, it just sends only one message each time. After

Re: Can NSNotificationCenter Memorize Old Events?

2011-06-06 Thread jonat...@mugginsoft.com
On 6 Jun 2011, at 10:51, Bing Li wrote: >// The lines are used to save message in a dictionary to transmit > with the notification >NSMutableDictionary *messageDictionary = [[[NSMutableDictionary > alloc] initWithCapacity:5] autorelease]; >[messageDictionary setObject:mess

Re: Asynchronous Notification Does NOT Work

2011-06-06 Thread Ken Thomases
Hi Bing, On Jun 5, 2011, at 11:36 PM, Bing Li wrote: > In my system, a server needs to handle requests from remote clients. Multiple > local threads are raised to listen to the specific port concurrently. This is an unusual design. It is more common for one thread (often the main thread) to l

Re: Can NSNotificationCenter Memorize Old Events?

2011-06-06 Thread Bing Li
Dear Jonathan, Thanks! I tried. Obj-C string is not the reason to the problem. Best, Bing On Mon, Jun 6, 2011 at 6:53 PM, jonat...@mugginsoft.com < jonat...@mugginsoft.com> wrote: > HI Bing > > I don't know why the note center is behaving as it is but you have used C > strings where you should

postNotificationName Executes Many Times for a Single Invocation

2011-06-06 Thread Bing Li
Dear all, I got a problem which confused me when using postNotificationName. The method that invokes "postNotificationName" is as follows. The line that includes "postNotificationName" runs multiple times even though the method is invoked only one time. Why could it happen? -(void)notifyMessageRe

Re: postNotificationName Executes Many Times for a Single Invocation

2011-06-06 Thread Graham Cox
On 06/06/2011, at 11:40 PM, Bing Li wrote: > The log is shown as follows similarly. This log tells a single invocation > got three notifications. Why? Probably because you subscribed to the same notification three times. The notification center doesn't bother to work out that you've already as

Re: iOS: Automatically resizing subviews

2011-06-06 Thread Heath Borders
Make sure your subviews are small enough to fit inside your view initially. I've had issues with resizing clipped subviews. -Heath On Jun 6, 2011 1:52 AM, "Development" wrote: > I thought I understood how auto resizing worked but I don't > > > According to the docs if I want to automatically resi

Re: postNotificationName Executes Many Times for a Single Invocation

2011-06-06 Thread Bing Li
Dear Graham, You are right. I am trying to fix the bug. Thanks so much! Best regards, Bing On Mon, Jun 6, 2011 at 9:46 PM, Graham Cox wrote: > > On 06/06/2011, at 11:40 PM, Bing Li wrote: > > > The log is shown as follows similarly. This log tells a single invocation > > got three notificatio

Re: [ANN] CoreParse

2011-06-06 Thread Philip Mötteli
Hi, Am 06.06.2011 um 00:12 schrieb Thomas Davie: > On 5 Jun 2011, at 18:22, Jens Alfke wrote: > On Jun 5, 2011, at 6:21 AM, Thomas Davie wrote: >> >>> I've just completed firming up the API and documentation for CoreParse. >>> CoreParse provides a powerful tokenisation and parsing engine, whic

Re: iOS: Automatically resizing subviews

2011-06-06 Thread Development
The parent view does not clip the subview actually. However the inner view is set to the exact same rectangle as the outer one initially. Would that make a difference? On Jun 6, 2011, at 6:55 AM, Heath Borders wrote: > Make sure your subviews are small enough to fit inside your view initially.

Re: [ANN] CoreParse

2011-06-06 Thread Thomas Davie
On 6 Jun 2011, at 16:10, Philip Mötteli wrote: > Hi, > > > Am 06.06.2011 um 00:12 schrieb Thomas Davie: >> On 5 Jun 2011, at 18:22, Jens Alfke wrote: >> On Jun 5, 2011, at 6:21 AM, Thomas Davie wrote: >>> I've just completed firming up the API and documentation for CoreParse. CoreP

Re: iOS: Automatically resizing subviews

2011-06-06 Thread David Duncan
On Jun 5, 2011, at 11:51 PM, Development wrote: > According to the docs if I want to automatically resize all the subviews of a > view I need to set the View up with > >[self setAutoresizesSubviews:YES]; >self.contentMode =UIViewContentModeScaleToFill; > > No? The contentMode

Re: NSTerminateLater and thread

2011-06-06 Thread Leonardo
I will try that, anyway I think the OS should grant the developer to manage the logout at his wish. For example, I return NSTerminateLater, then I launch my task in a thread and, at then end of the task I call replyToApplicationShouldTerminate:YES Easy. I understand the developer could even "fo

Re: iOS: Automatically resizing subviews

2011-06-06 Thread Development
That might be the problem. I'm not doing this in IB. I'm creating the view's programatically. I also noticed that no matter what I do, the subview's auto resizing mask always returns 0; Actually the whole thing is a screwed up mess. Neither view seems to respond to the drawing code I try to u

Re: iOS: Automatically resizing subviews

2011-06-06 Thread Kyle Sluder
On Jun 6, 2011, at 9:35 AM, Development wrote: > > That might be the problem. I'm not doing this in IB. I'm creating the view's > programatically. > > I also noticed that no matter what I do, the subview's auto resizing mask > always returns 0; Did you make sure you didn't accidentally creat

How disable Special Characters menu item?

2011-06-06 Thread McLaughlin, Michael P.
I have a Cocoa app (Xcode 3.2.6) which displays text output in a window. This is pure output not meant to be edited by the user. Accordingly, the textfield is marked as not editable or selectable in IB. When the window appears, all of the Edit menu items are disabled except Special Characters

Re: How disable Special Characters menu item?

2011-06-06 Thread Nick Zitzmann
On Jun 6, 2011, at 11:17 AM, McLaughlin, Michael P. wrote: > I have a Cocoa app (Xcode 3.2.6) which displays text output in a window. > This is pure output not meant to be edited by the user. Accordingly, the > textfield is marked as not editable or selectable in IB. > > When the window appe

Re: iOS: Automatically resizing subviews

2011-06-06 Thread Development
On Jun 6, 2011, at 10:00 AM, Kyle Sluder wrote: > On Jun 6, 2011, at 9:35 AM, Development wrote: > >> >> That might be the problem. I'm not doing this in IB. I'm creating the view's >> programatically. >> >> I also noticed that no matter what I do, the subview's auto resizing mask >> always

Re: How disable Special Characters menu item?

2011-06-06 Thread Greg Guerin
McLaughlin, Michael P wrote: I have a Cocoa app (Xcode 3.2.6) which displays text output in a window. This is pure output not meant to be edited by the user. Accordingly, the textfield is marked as not editable or selectable in IB. Speaking as a possible user, it is often useful to be

How can I be so wrong about graphics?

2011-06-06 Thread Development
I'm really loosing faith in my ability to read simple english According to like a million examples... If I place the follow bit of code in a view's drawRect: method I should get a line from pointA to pointB however I get nothing. How can subclassing UIView be this difficult? I have turned off c

Re: How can I be so wrong about graphics?

2011-06-06 Thread David Duncan
On Jun 6, 2011, at 2:31 PM, Development wrote: > I'm really loosing faith in my ability to read simple english > > > According to like a million examples... If I place the follow bit of code in > a view's drawRect: method I should get a line from pointA to pointB however I > get nothing. > How

Re: How can I be so wrong about graphics?

2011-06-06 Thread Andy Lee
How do you know you are getting an empty path? Did you put a breakpoint in the code and step through with the debugger? Is it possible you forgot to assign the view class in IB? --Andy On Jun 6, 2011, at 2:31 PM, Development wrote: > I'm really loosing faith in my ability to read simple engli

Re: How can I be so wrong about graphics?

2011-06-06 Thread Development
Hmm... it looks like it does draw the line... way off in the ether somewhere... I think I drew in the global coord system not the local to the view On Jun 6, 2011, at 2:37 PM, David Duncan wrote: > On Jun 6, 2011, at 2:31 PM, Development wrote: > >> I'm really loosing faith in my ability to read

Re: Handling mouse events on transparent window conditionally

2011-06-06 Thread Raleigh Ledet
I'm shooting off the cuff here. But try setting up a tracking area that matches your "active" rectangle. When the mouse enters the tracking area, setIgnoreMouseEvents:NO, when the mouse exits the tracking area setIgnoreMouseEvents:YES. -raleigh On May 31, 2011, at 1:30 AM, Ken Thomases wrote:

Re: How can I be so wrong about graphics?

2011-06-06 Thread Evadne Wu
Something along the line of [self convertPoint:aPoint fromView:nil] should do the trick, if you’re very sure that the points were global. Hope it helps. -ev On Jun 7, 2011, at 05:51, Development wrote: > Hmm... it looks like it does draw the line... way off in the ether > somewhere... > I thi

Re: How can I be so wrong about graphics?

2011-06-06 Thread David Duncan
If you are unsure, I would start with the line from 0,0 to bounds.size.width,bounds.size.height. On Jun 6, 2011, at 2:51 PM, Development wrote: > Hmm... it looks like it does draw the line... way off in the ether > somewhere... > I think I drew in the global coord system not the local to the vi

Re: OS + iOS best practice

2011-06-06 Thread Amy Gibbs
After the announcements about iCloud, should I just wait a while and I'll be able to build this in 'for free' (there will be a cocoa way to do this)? On 3 Jun 2011, at 9:29PM, Evadne Wu wrote: As for the SQLite file, I am never sure if Core Data’s OS X implementation and iOS implementation

Re: How can I be so wrong about graphics?

2011-06-06 Thread Manfred Schwind
> Hmm... it looks like it does draw the line... way off in the ether > somewhere... > I think I drew in the global coord system not the local to the view Are you sure you are _not_ calling drawRect yourself, but let the system call it when needed? If a view needs to be redrawn, the system sets u

Re: OS + iOS best practice

2011-06-06 Thread Conrad Shultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 6/6/11 10:51 PM, Amy Gibbs wrote: > After the announcements about iCloud, should I just wait a while and > I'll be able to build this in 'for free' (there will be a cocoa way to > do this)? While the iCloud announcement was obviously public, all th