I can write one using wrappers but would apple create a emacs-like interface to its gui code?
something like carbon
Post
Replies
Boosts
Views
Activity
#att
and try not to google unidef people will eventually come after you, stupid internet. drove me insane
its an odd forte into classic programming, and yeah, planning out @implementation takes a whole team
its either @implemntation or the other one, the one where you plan out classes.. it gets VERY complex, good job Steve, but yeah, well, yeah
Include<stdio.h>
Include<sockets.swift>
Include
Main(){
Window *main;
Window hah; // cosmetic
Main->title="hi";
Button close;
Main->addbutton(close.name = "VLOSEE" close.style, connect(apple.sys.close());
Window.hah.addbutton.link(&close);
}
Apple.sys.close@overload{ // THESE ARE FOUNDATIONS V2}
I tried doing the outlets for all the controls, then making a nsview in the method for a button that declares a view, then I set initwithframe to be sent to a variable typed 'id' and accessing that variable I was able to add nsbuttoncell to the variable, then I added the subview to the. main tableview
here's the code I used:
NSView *viewptr = [[NSView alloc]init];
NSButtonCell *bCell1 = [[NSButtonCell alloc]init];
NSRect rect;
[bCell1 setTitle:@"click"];
rect.size.width = 2;
rect.size.height = 1;
id temp,x;
temp = [viewptr initWithFrame:rect];
[temp addObject:bCell1];
[_cocoa_test_scrollview addSubview:temp];
is there anything im missing? the app keeps crashing and spiting out debug messages, like:
-[NSView addObject:]: unrecognized selector sent to instance 0x12ee0ae60
(
0 CoreFoundation 0x0000000186efaccc __exceptionPreprocess + 176
1 libobjc.A.dylib 0x00000001869e2788 objc_exception_throw + 60
2 CoreFoundation 0x0000000186fad02c -[NSObject(NSObject) __retain_OA] + 0
3 CoreFoundation 0x0000000186e64cdc forwarding + 1580
4 CoreFoundation 0x0000000186e645f0 _CF_forwarding_prep_0 + 96
5 objc_cocoa_test_image_3 0x0000000100608ca4 -[AppDelegate cocoa_test_button1_add:] + 264
6 AppKit 0x000000018a881c70 -[NSApplication(NSResponder) sendAction:to:from:] + 460
7 AppKit 0x000000018a881a74 -[NSControl sendAction:to:] + 72
8 AppKit 0x000000018a8819b8 __26-[NSCell _sendActionFrom:]_block_invoke + 100
9 AppKit 0x000000018a8818e0 -[NSCell _sendActionFrom:] + 204
10 AppKit 0x000000018a881804 -[NSButtonCell _sendActionFrom:] + 88
11 AppKit 0x000000018a87ee38 NSControlTrackMouse + 1480
12 AppKit 0x000000018a87e844 -[NSCell trackMouse:inRect:ofView:untilMouseUp:] + 144
13 AppKit 0x000000018a87e6fc -[NSButtonCell trackMouse:inRect:ofView:untilMouseUp:] + 488
14 AppKit 0x000000018a87dbd0 -[NSControl mouseDown:] + 448
15 AppKit 0x000000018a87c99c -[NSWindow(NSEventRouting) _handleMouseDownEvent:isDelayedEvent:] + 3472
16 AppKit 0x000000018a807f78 -[NSWindow(NSEventRouting) _reallySendEvent:isDelayedEvent:] + 364
17 AppKit 0x000000018a807c38 -[NSWindow(NSEventRouting) sendEvent:] + 284
18 AppKit 0x000000018aecde70 -[NSApplication(NSEventRouting) sendEvent:] + 1604
19 AppKit 0x000000018ab1b8cc -[NSApplication _handleEvent:] + 60
20 AppKit 0x000000018a6cfcdc -[NSApplication run] + 512
21 AppKit 0x000000018a6a6f54 NSApplicationMain + 880
22 objc_cocoa_test_image_3 0x0000000100608a68 main + 60
23 dyld 0x0000000186a1e0e0 start + 2360
)
can anyone point me in the right direction?
Hi everyone, sorry if this post comes off odd, I'm on heavy meds
but I intend to do foss gtk development in c on my Mac using Xcode, I've used brew to download the gtk libraries and I've individually added each path to each library for autocorrect and intelligence in Xcode
But when I build a GTK app in Xcode I get a bunch of 'Unresolved Symbol' messages, here's an example:
Undefined symbol: _g_application_get_type
I also get about 460 warnings from various libraries stating:
/opt/homebrew/Cellar/cairo/1.18.2/include/cairo/cairo.h:2773:5 '@callback' command should be used in a comment attached to a pointer to function declaration
I understand that when you need to compile GTK, you need to pass a command to the compiler (in this case pkg-config --libs --cflags gtk4), where in Xcode's project manager do I add that code? I think I'm supposed to run that command and add the output somewhere line by line to a combobox in Xcode, but where? "other linker flags"?
Has anyone had any luck compiling GTK apps directly from Xcode?
I understand the mvc thing kinda, theres an array as a model, a tableview as a control, and the interface as a control (right?)
so like, I drag an array controller on to the form display thing, assign a delegate to it the view and app module/header, add data to it and the tableview updates after I add a function to it? in vs the events are in the event browser, do I just copy and paste the code from the tutorial?
how do I add controls and do all the advanced stuff? the documentation on developer.apple.com isnt that detailed, and most books are outdated or n/a since its objective c
tutorials would be nice, some home grown method would be cool too
thank you
unidef warrell yashizzo