Post not yet marked as solved
Hi,
I have different displayLists (dL) to create,
8 lists have a own name, the work fine.
Then I have a dynamic structure of dLs, they are stored in c-arrays.
After i noticed that they are not shown, I made 2 dLs which differ in color and vertices.
drawRect:
glCallLists(2,GL_UNSIGNED_INT, test);
This is my list-array:
if(contentState[0] == 1)
{
glCallLists(contentCount,GL_FLOAT, curveList);
}
contentCount = 8 and the declaration is GLfloat curveList[20]
curveList has 8 display indices.
I hope I made a mistake and you find it :)
Uwe
Post not yet marked as solved
Hi,
I have no idea what happened, I got no warnings, no error.
When I used the Sandbox I got a GL_INVALID_VALUE error.
Please have I look at the attachments for illustration.
Post not yet marked as solved
This is not an error or warning, it appears in the console as a configuration error.
it's behind my horizon, maybe someone can tell.
Uwe
Post not yet marked as solved
Hi,
in the past, before apple killed opengl, I had access to the arrayController via outlet.
Because most samples from the internet use storyboard, me too.
I use a splitViewController with a source- and and a displayViewController.
I moved the notificationCenter and the tableView notification "selectionDidChange" to the sourceViewController.
Bindings are established.
Adding a new row I get my managedObject, but it is empty 😝.
I see the merit of storyboard but I'm ready to turn back to XIB.
Uwe
Post not yet marked as solved
Hi,
obj-c (void)viewDidLoad
{
[super viewDidLoad];
_view = (MTKView *)self.view;
_view.device = MTLCreateSystemDefaultDevice(); // - Error
.
.
.
}
with Xcode 9.3 it runs normal with 12.4 I get the note:
Failed to set (contentViewController) user defined inspected property on (NSWindow): -[NSView setDevice:]: unrecognized selector sent to...
Mit freundlichen Grüßen
Uwe
Post not yet marked as solved
Hi, you are still alive ?
I have seen in the bindings inspector 2 textfields, "Value Transformer" and "Selector Name".
Is ValueTransformer a class and SelectorName a method ?
It would make me happy if you give me a link of this issue, but no swift code, please.
Uwe
Post not yet marked as solved
Hi,
in other words: When is time for versioning ?
After saving Xcode or saving or build the project ?
Or is there a time frame ?😊
Uwe
Post not yet marked as solved
Hi altogether,
I'm not a professional developer, I work k on projects for me and my children.
If I do not set a breakpoint the project behaves normal.
This issue appears in all projects, even in examples that I downloaded ("Metal by Tutorials", "Hacking with macOS").
It appears anywhere, whatever method I choose.
I created a new project and got the warning:
The macOS deployment target 'MACOSX_DEPLOYMENT_TARGET' is set to 10.16, but the range of supported deployment target versions is 10.6 to 10.15.99.
The project breaked.
After I set the target to 10.15 it breaked too:
obj-C
DebugTest`-[AppDelegate applicationDidFinishLaunching:]:
0x1000029e0 +0: pushq %rbp
0x1000029e1 +1: movq %rsp, %rbp
0x1000029e4 +4: subq $0x20, %rsp
0x1000029e8 +8: movq %rdi, -0x8(%rbp)
0x1000029ec +12: movq %rsi, -0x10(%rbp)
0x1000029f0 +16: movq $0x0, -0x18(%rbp)
0x1000029f8 +24: leaq -0x18(%rbp), %rax
0x1000029fc +28: movq %rax, %rdi
0x1000029ff +31: movq %rdx, %rsi
0x100002a02 +34: callq 0x100008c3a ; symbol stub for: objc_storeStrong
0x100002a07 +39: movq 0xbcf2(%rip), %rax ; (void *)0x000000010000eaa8: AppDelegate
Please help, I cannot code without debugging.
Uwe
Post not yet marked as solved
Hello, my name is Uwe.
I'm a newbie, my questions are sure not new, please practise lenity.
I explain the Problem by an example:
In the timer selector :
float incX = 0.05;
if(_runX)
{
if (_increaseX)_rotationX += incX;
else _rotationX += incX * -1.0;
[self setNeedsDisplay:YES];
}
if runX is initialised with YES the view rotates.
I can change runX with a toggle button but in drawRect _runX don't change.
2 years ago I had no problem with this issue but I don't know the Xcode version I have used.
I hope to get an answer.
Uwe