]> src.bluestatic.org Git - macgdbp.git/blob - dev/CFNetworkTest/AppDelegate.h
Fix a silly memory bug where MessageQueue._message was autoreleased.
[macgdbp.git] / dev / CFNetworkTest / AppDelegate.h
1 //
2 // AppDelegate.h
3 // CFNetworkTest
4 //
5 // Created by Robert Sesek on 2/15/10.
6 // Copyright 2010 Blue Static. All rights reserved.
7 //
8
9 #import <Cocoa/Cocoa.h>
10
11 @interface AppDelegate : NSObject <NSApplicationDelegate>
12 {
13 @public
14 NSWindow* window_;
15 NSTextField* commandField_;
16 NSTextView* resultView_;
17
18 CFSocketRef socket_; // Strong.
19 CFReadStreamRef readStream_; // Strong.
20 CFWriteStreamRef writeStream_; // Strong.
21
22 NSMutableString* currentPacket_;
23 int lastPacketSize_;
24 int packetIndex_;
25 }
26
27 @property (assign) IBOutlet NSWindow* window;
28 @property (assign) IBOutlet NSTextField* commandField;
29 @property (assign) IBOutlet NSTextView* resultView;
30 @property (retain) NSMutableString* currentPacket;
31
32 - (IBAction)send:(id)sender;
33
34 @end